Gulp babel es2015 transform very slow

后端 未结 1 1625
小蘑菇
小蘑菇 2021-02-19 00:48

I am trying to run the babel-preset-es2015 on my JavaScript using gulp, but it takes forever even on one line of code. I originally tried with my script bundle that is about 700

相关标签:
1条回答
  • 2021-02-19 01:25

    Babel 6 has many highly-nested subdependencies. This can be quite slow if you have a non-flattened dependency tree. In your case, you are using npm 2, you will need to either npm dedupe or install npm@3 and reinstall so that your dependencies are flattened.

    0 讨论(0)
提交回复
热议问题