mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
24 lines
467 B
TypeScript
24 lines
467 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]
|