vuecssuiant-designantdreactantantd-vueenterprisefrontendui-designvue-antdvue-antd-uivue3vuecomponent
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.
32 lines
844 B
32 lines
844 B
'use strict' |
|
|
|
module.exports = function (modules) { |
|
const plugins = [ |
|
require.resolve('babel-plugin-transform-vue-jsx'), |
|
require.resolve('babel-plugin-transform-es3-member-expression-literals'), |
|
require.resolve('babel-plugin-transform-es3-property-literals'), |
|
require.resolve('babel-plugin-transform-object-assign'), |
|
require.resolve('babel-plugin-transform-object-rest-spread'), |
|
] |
|
plugins.push([require.resolve('babel-plugin-transform-runtime'), { |
|
polyfill: false, |
|
}]) |
|
return { |
|
presets: [ |
|
[require.resolve('babel-preset-env'), { |
|
modules, |
|
targets: { |
|
browsers: [ |
|
'last 2 versions', |
|
'Firefox ESR', |
|
'> 1%', |
|
'ie >= 9', |
|
'iOS >= 8', |
|
'Android >= 4', |
|
], |
|
}, |
|
}], |
|
], |
|
plugins, |
|
} |
|
}
|
|
|