for example, after the project is packaged, the page cannot be opened in ie. After the uncompressed code is packaged, you can see that there is still let in the code. Why is babel not converted? no, no, no. The .babelrc code is as follows
{
"presets": [
["env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
}],
"stage-2",
["es2015"]
],
"plugins": [
"transform-vue-jsx",
"transform-runtime",
["syntax-dynamic-import"],
["component", [
{
"libraryName": "element-ui",
"styleLibraryName": "~theme"
}
]]
],
"env": {
"test": {
"presets": ["env", "stage-2"],
"plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"]
}
}
}