browserslist can be configured in babel to tell babel the rules for the specific conversion code. The .babelrc file generated in vue-cli:
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
Can this sentence be understood in this way? The generated code should be compatible with browsers with a market share of more than 1%. It is the last two versions of these browsers, and IE is compatible with version 8 or above. How to understand "last 2 versions" and "not ie < = 8"?
compatible with the previous two versions? Are browsers that exceed the first two versions incompatible? What about the client"s older version of the browser? The last two versions of IE must be greater than 8, right? Then why write "not ie < = 8"? Did you repeat it?
I hope the great gods who understand will not hesitate to give us your advice, thank you!