Babel not transpiling arrow functions (Webpack)

后端 未结 3 956
再見小時候
再見小時候 2020-12-09 11:01

When running webpack, and babel, the resulting bundle.js still contains arrow functions. This gives me a Syntax Error when running in Internet Explorer 10. I would like babe

3条回答
  •  余生分开走
    2020-12-09 12:02

    I think an issue is related to query-string because it's written in ES6 and not transpiled to ES5. Try to downgrade version from 6 to 5.

    yarn add query-string@5.1.1
    

提交回复
热议问题