2021-04-07 15:01:10 +08:00
|
|
|
module.exports = {
|
|
|
|
"plugins": [
|
|
|
|
["transform-class-properties", { "spec": true }],
|
|
|
|
["@babel/plugin-transform-classes", { "loose": true }],
|
|
|
|
["@babel/plugin-proposal-class-properties", { "loose": true }],
|
|
|
|
"@babel/plugin-transform-runtime",
|
|
|
|
["@babel/plugin-proposal-decorators", { "legacy": true }],
|
|
|
|
"@babel/plugin-proposal-function-sent",
|
|
|
|
"@babel/plugin-proposal-export-namespace-from",
|
|
|
|
"@babel/plugin-proposal-numeric-separator",
|
|
|
|
"@babel/plugin-proposal-throw-expressions",
|
|
|
|
"@babel/plugin-syntax-dynamic-import",
|
|
|
|
"@babel/plugin-syntax-import-meta",
|
|
|
|
"@babel/plugin-proposal-json-strings",
|
2021-04-07 15:19:14 +08:00
|
|
|
"@babel/plugin-transform-modules-commonjs"
|
2021-04-07 15:01:10 +08:00
|
|
|
],
|
|
|
|
"presets": [
|
|
|
|
"@babel/preset-env"
|
|
|
|
]
|
|
|
|
};
|