babel.config.js 423 B

12345678910111213141516171819202122
  1. const presets = [
  2. [
  3. '@babel/preset-env',
  4. {
  5. loose: false,
  6. modules: false,
  7. targets: {
  8. browsers: ['Android >= 4', 'iOS >= 8']
  9. }
  10. }
  11. ]
  12. ];
  13. const plugins = [
  14. '@babel/plugin-transform-runtime',
  15. '@babel/plugin-syntax-dynamic-import',
  16. '@babel/plugin-proposal-object-rest-spread',
  17. '@babel/plugin-transform-object-assign',
  18. 'istanbul'
  19. ];
  20. module.exports = { presets, plugins };