babel.config.js 539 B

1234567891011121314151617181920212223242526
  1. // This config is project-wide config for `npm run test:node`
  2. module.exports = {
  3. // workaround for https://github.com/babel/babel/issues/2877
  4. // "passPerPreset": true,
  5. presets: [
  6. [
  7. '@babel/preset-env',
  8. {
  9. debug: true,
  10. modules: 'commonjs',
  11. targets: {
  12. node: 'current',
  13. },
  14. },
  15. ],
  16. ],
  17. plugins: [
  18. ['@babel/plugin-transform-runtime'],
  19. ['@babel/plugin-proposal-decorators', { legacy: true }],
  20. ],
  21. env: {
  22. test: {
  23. plugins: ['istanbul'],
  24. },
  25. },
  26. };