.babelrc 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. {
  2. "env": {
  3. "development": {
  4. "presets": ["es2015", "stage-0"]
  5. },
  6. "restricted": {
  7. "plugins": [
  8. ['transform-runtime', { polyfill: false }],
  9. "babel-plugin-transform-es2015-template-literals",
  10. "babel-plugin-transform-es2015-literals",
  11. "babel-plugin-transform-es2015-function-name",
  12. "babel-plugin-transform-es2015-arrow-functions",
  13. "babel-plugin-transform-es2015-block-scoped-functions",
  14. "babel-plugin-transform-es2015-classes",
  15. "babel-plugin-transform-es2015-object-super",
  16. "babel-plugin-transform-es2015-shorthand-properties",
  17. "babel-plugin-transform-es2015-computed-properties",
  18. "babel-plugin-transform-es2015-for-of",
  19. "babel-plugin-transform-es2015-sticky-regex",
  20. "babel-plugin-transform-es2015-unicode-regex",
  21. "babel-plugin-check-es2015-constants",
  22. "babel-plugin-transform-es2015-spread",
  23. "babel-plugin-transform-es2015-parameters",
  24. "babel-plugin-transform-es2015-destructuring",
  25. "babel-plugin-transform-es2015-block-scoping",
  26. "babel-plugin-transform-es2015-typeof-symbol",
  27. "babel-plugin-transform-es2015-modules-commonjs"
  28. ]
  29. }
  30. }
  31. }