babel.config.js 481 B

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