vue installed babel-polyfill ie still can't adapt

In the previous article, I wrote to install the babel-polyfill plug-in to adapt to the Internet Explorer. The
link is as follows: https://blog.csdn.net/qq_43469899/article/details/102969776
Some friends will find that although you are equipped with my last one Those parts of the article still can't be adapted. Opening ie is still blank, then you can solve this problem for you next: please read on

Go to your project to find if there is a .babelrc file! If not, then the problem is found because the file is missing, which prevents you from loading on ie!

Next, create a new .babelrc file in the root path of your project and
copy the following code:
{
“presets”: [
[“env”, {
“modules”: false,
“targets”: {
“browsers”: ["> 1 % ",“ Last 2 versions ”,“ not ie <= 8 ”]
}
}],
“ stage-2 ”
],
“ plugins ”: [“ transform-vue-jsx ”,“ transform-runtime ”],
“ env ”: {
“ Test ”: {
“ presets ”: [“ env ”,“ stage-2 ”],
“ plugins ”: [“ transform-vue-jsx ”,“ transform-es2015-modules-commonjs ”,“ dynamic- import-node ”]
}
}
}

Then restart the project to solve the problem!
Of course, you can see from the code that you are under the ie8! The blogger can do nothing!

Published 34 original articles · won praise 0 · Views 3634

Guess you like

Origin blog.csdn.net/qq_43469899/article/details/102973805