|
|
@ -3,14 +3,20 @@
|
|
|
|
module.exports = function(modules) {
|
|
|
|
module.exports = function(modules) {
|
|
|
|
const plugins = [
|
|
|
|
const plugins = [
|
|
|
|
require.resolve('@ant-design-vue/babel-plugin-jsx'),
|
|
|
|
require.resolve('@ant-design-vue/babel-plugin-jsx'),
|
|
|
|
require.resolve('babel-plugin-inline-import-data-uri'),
|
|
|
|
require.resolve('@babel/plugin-proposal-optional-chaining'),
|
|
|
|
require.resolve('@babel/plugin-transform-member-expression-literals'),
|
|
|
|
|
|
|
|
require.resolve('@babel/plugin-transform-property-literals'),
|
|
|
|
|
|
|
|
require.resolve('@babel/plugin-proposal-export-default-from'),
|
|
|
|
|
|
|
|
require.resolve('@babel/plugin-transform-object-assign'),
|
|
|
|
require.resolve('@babel/plugin-transform-object-assign'),
|
|
|
|
require.resolve('@babel/plugin-transform-template-literals'),
|
|
|
|
|
|
|
|
require.resolve('@babel/plugin-proposal-object-rest-spread'),
|
|
|
|
require.resolve('@babel/plugin-proposal-object-rest-spread'),
|
|
|
|
|
|
|
|
require.resolve('@babel/plugin-proposal-export-default-from'),
|
|
|
|
require.resolve('@babel/plugin-proposal-class-properties'),
|
|
|
|
require.resolve('@babel/plugin-proposal-class-properties'),
|
|
|
|
|
|
|
|
require.resolve('@babel/plugin-syntax-dynamic-import'),
|
|
|
|
|
|
|
|
// require.resolve('babel-plugin-inline-import-data-uri'),
|
|
|
|
|
|
|
|
// require.resolve('@babel/plugin-transform-member-expression-literals'),
|
|
|
|
|
|
|
|
// require.resolve('@babel/plugin-transform-property-literals'),
|
|
|
|
|
|
|
|
// require.resolve('@babel/plugin-proposal-export-default-from'),
|
|
|
|
|
|
|
|
// require.resolve('@babel/plugin-transform-object-assign'),
|
|
|
|
|
|
|
|
// require.resolve('@babel/plugin-transform-template-literals'),
|
|
|
|
|
|
|
|
// require.resolve('@babel/plugin-proposal-object-rest-spread'),
|
|
|
|
|
|
|
|
// require.resolve('@babel/plugin-proposal-class-properties'),
|
|
|
|
];
|
|
|
|
];
|
|
|
|
plugins.push([
|
|
|
|
plugins.push([
|
|
|
|
require.resolve('@babel/plugin-transform-runtime'),
|
|
|
|
require.resolve('@babel/plugin-transform-runtime'),
|
|
|
@ -29,7 +35,7 @@ module.exports = function(modules) {
|
|
|
|
'last 2 versions',
|
|
|
|
'last 2 versions',
|
|
|
|
'Firefox ESR',
|
|
|
|
'Firefox ESR',
|
|
|
|
'> 1%',
|
|
|
|
'> 1%',
|
|
|
|
'ie >= 9',
|
|
|
|
'ie >= 11',
|
|
|
|
'iOS >= 8',
|
|
|
|
'iOS >= 8',
|
|
|
|
'Android >= 4',
|
|
|
|
'Android >= 4',
|
|
|
|
],
|
|
|
|
],
|
|
|
|