1
0

babel.config.js 719 B

123456789101112131415161718192021222324252627282930313233
  1. module.exports = {
  2. presets: [
  3. [
  4. '@babel/preset-env',
  5. {
  6. modules: false,
  7. targets: {
  8. browsers: [
  9. "> 0.5%",
  10. "last 2 versions",
  11. "Firefox ESR",
  12. "not dead",
  13. "not IE 11"
  14. ]
  15. }
  16. },
  17. ],
  18. ],
  19. plugins: [
  20. [
  21. '@babel/plugin-transform-runtime',
  22. {
  23. corejs: 3
  24. },
  25. ],
  26. [
  27. '@babel/plugin-proposal-decorators',
  28. {
  29. legacy: true,
  30. },
  31. ],
  32. ]
  33. };