babel.config.js 334 B

12345678910111213141516171819
  1. module.exports = {
  2. presets: ['@babel/env'],
  3. env: {
  4. test: {
  5. presets: ['@babel/env'],
  6. plugins: ['@babel/plugin-transform-runtime']
  7. },
  8. dev: {
  9. plugins: [
  10. [
  11. 'transform-inline-environment-variables',
  12. {
  13. include: ['NODE_ENV']
  14. }
  15. ]
  16. ]
  17. }
  18. }
  19. }