babel.config.js 658 B

12345678910111213141516171819202122232425262728
  1. module.exports = {
  2. "presets": [
  3. '@vue/cli-plugin-babel/preset',
  4. [
  5. "@babel/preset-env",
  6. {
  7. "useBuiltIns": "usage",
  8. "corejs": 3
  9. }
  10. ]
  11. ],
  12. "plugins": [
  13. ["component",
  14. {
  15. "libraryName": "element-ui",
  16. "styleLibraryName": "theme-chalk"
  17. }
  18. ]
  19. ],
  20. 'env': {
  21. 'development': {
  22. // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
  23. // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
  24. 'plugins': ['dynamic-import-node']
  25. }
  26. }
  27. }