babel.config.js 652 B

123456789101112131415161718192021222324
  1. module.exports = {
  2. // presets: [
  3. // // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
  4. // '@vue/cli-plugin-babel/preset'
  5. // ],
  6. presets: [
  7. ['@vue/app', {
  8. polyfills: [
  9. 'es.promise',
  10. 'es.symbol',
  11. 'es.map',
  12. 'es.set'
  13. ]
  14. }]
  15. ],
  16. compact: false,
  17. 'env': {
  18. 'development': {
  19. // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
  20. // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
  21. 'plugins': ['dynamic-import-node', 'macros']
  22. }
  23. }
  24. }