forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
778 B
34 lines
778 B
module.exports = function (api) { |
|
api.cache(true); |
|
const presets = [ |
|
[ |
|
"@babel/preset-env", |
|
{ |
|
targets: { |
|
ie: 8, |
|
}, |
|
}, |
|
], |
|
"@babel/preset-typescript", |
|
]; |
|
const plugins = [ |
|
[ |
|
"@babel/plugin-proposal-decorators", |
|
{ |
|
legacy: true, |
|
}, |
|
], |
|
"@babel/plugin-proposal-class-properties", |
|
"@babel/plugin-transform-block-scoping", |
|
["@babel/plugin-transform-classes", { |
|
loose: true, |
|
}], |
|
"@babel/plugin-transform-proto-to-assign", |
|
"@babel/plugin-transform-modules-commonjs", |
|
]; |
|
|
|
return { |
|
presets, |
|
plugins, |
|
}; |
|
};
|
|
|