MDL-79003 js: Move browserlist config to package.json

This commit is contained in:
Andrew Nicols 2024-01-30 09:36:32 +08:00
parent a6216bb890
commit bca28b03a9
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14
2 changed files with 9 additions and 11 deletions

View File

@ -154,16 +154,6 @@ module.exports = grunt => {
],
presets: [
['@babel/preset-env', {
targets: {
browsers: [
">0.3%",
"last 2 versions",
"not ie >= 0",
"not op_mini all",
"not Opera > 0",
"not dead"
]
},
modules: false,
useBuiltIns: false
}]

View File

@ -45,5 +45,13 @@
},
"engines": {
"node": ">=20.11.0 <21"
}
},
"browserslist": [
">0.3%",
"last 2 versions",
"not ie >= 0",
"not op_mini all",
"not Opera > 0",
"not dead"
]
}