Babel not transpiling arrow functions (Webpack)

纵然是瞬间 提交于 2019-11-29 03:52:53

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

it seems to be related to 'transform-es2015-function-name' plugin. see https://github.com/babel/babel/issues/4782#issuecomment-271367012 for details. So excluding the plugin should do the job.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!