Part of the es6 syntax is not compiled when the vue official template is packaged

the project is generated using vue-cli "s official webpack template, and the packaged vendor file still contains es6 syntax that is incompatible with ie browsers.
is there any way to solve this?

Project address: github

clipboard.png

Mar.14,2021

Yes, I also encountered the same problem. Part of the es6 bit transcoding is useless on the Internet, but I don't know much about the setting of webpack, so I finally came up with a very stupid method. Since it can not be solved fundamentally, it can be solved manually from the packaged file. Check which file is not transcoded, then transcode that file manually, find the babel official website, and then paste the code on it, which will automatically transcode, and then replace the original code. Testing feasible
babel transcoding address: https://www.babeljs.cn/repl/

Menu