.babelrc 630 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "presets": [
  3. [
  4. "@babel/preset-env",
  5. {
  6. "targets": {
  7. "node": "10"
  8. }
  9. }
  10. ]
  11. ],
  12. "plugins": [
  13. "lodash",
  14. "@babel/plugin-proposal-class-properties",
  15. "@babel/plugin-proposal-export-default-from",
  16. "@babel/plugin-proposal-optional-chaining",
  17. [
  18. "transform-inline-environment-variables",
  19. {
  20. "exclude": [
  21. "LOG",
  22. "DEVTOOLS"
  23. ]
  24. }
  25. ],
  26. [
  27. "module-resolver",
  28. {
  29. "root": [
  30. "./"
  31. ],
  32. "alias": {
  33. "~": "./",
  34. "test": "./test"
  35. }
  36. }
  37. ]
  38. ]
  39. }