123456789101112131415161718192021222324252627282930313233 |
- const plugins = []
- // if your use import on Demand, Use this code,but can't use the cdn together
- // plugins.push(
- // [ 'import', {
- // 'libraryName': 'ant-design-vue',
- // 'libraryDirectory': 'es',
- // 'style': true // `style: true` 会加载 less 文件
- // } ]
- // )
- if (['production', 'prod'].includes(process.env.NODE_ENV)) {
- plugins.push('transform-remove-console')
- //plugins.push( [
- // "@babel/plugin-transform-modules-systemjs",
- // {
- // outputs SystemJS.register(...)
- // "systemGlobal": "SystemJS"
- // }
- //])
- }
- module.exports = {
- presets: [
- '@vue/app',
- [
- '@babel/preset-env',
- {
- 'corejs':'3',
- 'useBuiltIns': 'entry'
- }
- ]
- ],
- plugins: plugins
- }
|