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
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
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/
Previous: How to use regular to intercept the string you want?
Next: How to solve the problem of long content download time?
< H1 > question < H1 > in the webpack template project of vue, I gave the node_module directory include to babel-loader for es6-> es5 translation of the referenced module. As a result, warnings and errors occurred when npm run build , errors and wa...