babel.config.js 474 B

12345678910111213
  1. module.exports = {
  2. presets: [
  3. '@vue/cli-plugin-babel/preset'
  4. ],
  5. 'env': {
  6. 'development': {
  7. // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
  8. // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
  9. // https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html
  10. 'plugins': ['dynamic-import-node']
  11. }
  12. }
  13. }