babel.config.js 610 B

123456789101112131415161718192021222324
  1. module.exports = function(api) {
  2. api.cache.forever();
  3. return {
  4. "presets": [
  5. ["@babel/preset-env", {
  6. "targets": {
  7. "chrome": 40,
  8. "firefox": 35,
  9. "edge": 14,
  10. "node": "6.5"
  11. },
  12. "modules": false,
  13. "useBuiltIns": "entry"
  14. }]
  15. ],
  16. "plugins": [
  17. "babel-plugin-syntax-dynamic-import",
  18. ["babel-plugin-transform-builtin-extend", {
  19. "globals": ["Error"]
  20. }]
  21. ]
  22. };
  23. };