24 lines
584 B
JavaScript
24 lines
584 B
JavaScript
module.exports = (api) => {
|
|
api.cache(true);
|
|
|
|
const presets = [
|
|
[ '@babel/preset-env'
|
|
]
|
|
];
|
|
|
|
const plugins = [
|
|
["@babel/plugin-proposal-decorators", { "legacy": true }],
|
|
["@babel/plugin-syntax-dynamic-import"],
|
|
["@babel/plugin-transform-class-properties", { "loose": true }],
|
|
["@babel/plugin-transform-private-methods", { "loose": true }],
|
|
["@babel/plugin-transform-private-property-in-object", { "loose": true }],
|
|
["@babel/plugin-transform-modules-commonjs"],
|
|
["@babel/transform-runtime"],
|
|
];
|
|
|
|
return {
|
|
presets,
|
|
plugins,
|
|
};
|
|
}
|