.babelrc 653 B

1234567891011121314151617181920212223242526
  1. {
  2. "compact": false,
  3. "presets": [
  4. [
  5. "@babel/preset-env",
  6. {
  7. "loose": true,
  8. "targets": {
  9. "browsers": ["ie >= 11", "safari > 10"]
  10. }
  11. }
  12. ],
  13. ["@babel/typescript", { "isTSX": true, "allExtensions": true }]
  14. ],
  15. "plugins": [
  16. ["@babel/plugin-proposal-decorators", { "version": "legacy" }],
  17. [
  18. "@babel/plugin-transform-runtime",
  19. // version defaults to 7.0.0 for which non-legacy decorators produce duplicate code
  20. { "version": "^7.24.3" }
  21. ],
  22. ["babel-plugin-inferno", { "imports": true }],
  23. ["@babel/plugin-transform-class-properties", { "loose": true }]
  24. ]
  25. }