mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-09-26 22:49:14 +08:00
21 lines
448 B
TypeScript
21 lines
448 B
TypeScript
import { RuleSetUseItem } from 'webpack'
|
|
import { injectMetadata } from '../inject-metadata'
|
|
|
|
const babelLoader: RuleSetUseItem = {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
presets: [
|
|
'@babel/preset-env',
|
|
[
|
|
'@babel/preset-typescript',
|
|
{
|
|
allExtensions: true,
|
|
},
|
|
],
|
|
],
|
|
plugins: [['@babel/plugin-proposal-class-properties'], injectMetadata],
|
|
},
|
|
}
|
|
|
|
export const tsLoaders = [babelLoader]
|