.babelrc 780 B

1234567891011121314151617181920212223242526272829303132
  1. {
  2. "presets": [
  3. "@babel/typescript",
  4. "@babel/preset-env"
  5. ],
  6. "plugins": [
  7. ["module-resolver", {
  8. "root": ["./desktop/core/src/desktop/js"]
  9. }],
  10. "@babel/plugin-syntax-dynamic-import",
  11. "@babel/proposal-class-properties",
  12. "@babel/proposal-object-rest-spread"
  13. ],
  14. "overrides": [{
  15. "test": "./desktop/core/src/desktop/js/parse/sqlAutocompleteParser.js",
  16. "compact": false
  17. },{
  18. "test": "./desktop/core/src/desktop/js/parse/sqlSyntaxParser.js",
  19. "compact": false
  20. }],
  21. "env": {
  22. "test": {
  23. "presets": ["@babel/typescript", "@babel/preset-env"],
  24. "plugins": [
  25. ["module-resolver", {
  26. "root": ["./desktop/core/src/desktop/js"]
  27. }],
  28. "@babel/plugin-syntax-dynamic-import"
  29. ]
  30. }
  31. }
  32. }