Vue-cli3 project runs under IE11 and reports an error.

problem: there is no problem under chrome, FF or Edge. IE11 reports syntax error:


:

solution that has been tried:

    All the solutions to this problem on
  1. sf have been tried, some say it is caused by webpack-dev-server, but the project is still running after being packaged (the error location is that ie does not recognize the class class).
  2. invalid introduction of babel-polyfill

does not recognize class , so let babel compile to es2015


item error reason: the dependency in node_modules contains ES6 syntax and cannot be run in ie10 and above browsers, resulting in an error.
specific configuration: github address

Menu