babel.config.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <<<<<<< HEAD
  2. module.exports = {
  3. "presets": [
  4. '@vue/cli-plugin-babel/preset',
  5. [
  6. "@babel/preset-env",
  7. {
  8. "useBuiltIns": "usage",
  9. "corejs": 3
  10. }
  11. ]
  12. ],
  13. "plugins": [
  14. ["component",
  15. {
  16. "libraryName": "element-ui",
  17. "styleLibraryName": "theme-chalk"
  18. }
  19. ]
  20. ],
  21. 'env': {
  22. 'development': {
  23. // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
  24. // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
  25. 'plugins': ['dynamic-import-node']
  26. }
  27. }
  28. }
  29. =======
  30. module.exports = {
  31. "presets": [
  32. '@vue/cli-plugin-babel/preset',
  33. [
  34. "@babel/preset-env",
  35. {
  36. "useBuiltIns": "usage",
  37. "corejs": 3
  38. }
  39. ]
  40. ],
  41. "plugins": [
  42. ["component",
  43. {
  44. "libraryName": "element-ui",
  45. "styleLibraryName": "theme-chalk"
  46. }
  47. ]
  48. ],
  49. 'env': {
  50. 'development': {
  51. // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
  52. // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
  53. 'plugins': ['dynamic-import-node']
  54. }
  55. }
  56. }
  57. >>>>>>> ec6eeb00ce64eb587a455406167d302dc3e59216