ant-design-vue/babel.config.js

19 lines
639 B
JavaScript
Raw Normal View History

2020-08-12 20:26:09 +08:00
module.exports = {
env: {
test: {
presets: [['@babel/preset-env', { targets: { node: true } }]],
plugins: [
2021-04-30 11:23:35 +08:00
['@vue/babel-plugin-jsx', { mergeProps: false, enableObjectSlots: false }],
2020-08-12 20:26:09 +08: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 17:17:10 +08:00
'@babel/plugin-proposal-export-namespace-from',
2020-08-12 20:26:09 +08:00
'@babel/plugin-proposal-class-properties',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-transform-runtime',
],
},
},
};