.babelrc 456 B

12345678910111213141516171819
  1. {
  2. "presets": [
  3. ["env", {
  4. "modules": false,
  5. "targets": {
  6. "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
  7. }
  8. }],
  9. "stage-2"
  10. ],
  11. //"plugins": ["transform-vue-jsx","transform-runtime"],
  12. "plugins": [ "transform-es2015-modules-commonjs"],
  13. "env": {
  14. "test": {
  15. "presets": ["env", "stage-2"],
  16. "plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"]
  17. }
  18. }
  19. }