babel.config.js 723 B

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. presets: [['@vue/cli-plugin-babel/preset', {useBuiltIns: 'entry',}]],
  3. /*presets: ['@vue/cli-plugin-babel/preset',
  4. [
  5. "@babel/preset-env",
  6. {
  7. "corejs": {
  8. version: 3,
  9. proposals: true
  10. },
  11. "useBuiltIns": "entry"
  12. }
  13. ]
  14. ],
  15. plugins: [
  16. 'lodash',
  17. [
  18. 'import',
  19. {
  20. libraryName: 'ant-design-vue',
  21. libraryDirectory: 'es',
  22. style: 'css'
  23. }
  24. ], // `style: true` 会加载 less 文件
  25. ["@babel/plugin-transform-runtime"]
  26. ]*/
  27. }