2020-08-12 12:26:09 +00:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
test: {
|
2022-07-07 01:50:56 +00:00
|
|
|
presets: [['@babel/preset-env']],
|
2020-08-12 12:26:09 +00:00
|
|
|
plugins: [
|
2021-04-30 03:23:35 +00:00
|
|
|
['@vue/babel-plugin-jsx', { mergeProps: false, enableObjectSlots: false }],
|
2020-08-12 12:26:09 +00:00
|
|
|
'@babel/plugin-proposal-optional-chaining',
|
|
|
|
'@babel/plugin-transform-object-assign',
|
|
|
|
'@babel/plugin-proposal-object-rest-spread',
|
|
|
|
'@babel/plugin-proposal-export-default-from',
|
2020-10-19 09:17:10 +00:00
|
|
|
'@babel/plugin-proposal-export-namespace-from',
|
2020-08-12 12:26:09 +00:00
|
|
|
'@babel/plugin-proposal-class-properties',
|
|
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
|
|
'@babel/plugin-transform-runtime',
|
2022-07-07 02:07:54 +00:00
|
|
|
'transform-require-context',
|
2020-08-12 12:26:09 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|