babel.config.js 784 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * @Description:
  3. * @Author: ZY
  4. * @Date: 2020-12-07 10:30:20
  5. * @LastEditors: ZY
  6. * @LastEditTime: 2021-01-05 17:11:54
  7. */
  8. module.exports = {
  9. presets: [
  10. '@vue/cli-plugin-babel/preset'
  11. ],
  12. env: {
  13. development: {
  14. // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
  15. // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
  16. // https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html
  17. plugins: [
  18. 'dynamic-import-node'
  19. // [
  20. // 'component',
  21. // {
  22. // libraryName: 'element-plus',
  23. // styleLibraryName: 'theme-chalk'
  24. // }
  25. // ]
  26. ]
  27. }
  28. }
  29. }