babel.config.js 447 B

123456789101112131415161718192021
  1. module.exports = {
  2. plugins: ['@babel/plugin-proposal-optional-chaining'],
  3. presets: [
  4. '@vue/app',
  5. [
  6. '@babel/preset-env',
  7. {
  8. 'useBuiltIns': 'entry'
  9. }
  10. ]
  11. ]
  12. // if your use import on Demand, Use this code
  13. // ,
  14. // plugins: [
  15. // [ 'import', {
  16. // 'libraryName': 'ant-design-vue',
  17. // 'libraryDirectory': 'es',
  18. // 'style': true // `style: true` 会加载 less 文件
  19. // } ]
  20. // ]
  21. }