mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-18 04:59:23 +00:00
build: exclude minor browsers from build targets
This commit is contained in:
7
.babelrc
7
.babelrc
@@ -1,5 +1,6 @@
|
|||||||
// https://emotion.sh/docs/css-prop##babel-preset
|
// https://emotion.sh/docs/css-prop##babel-preset
|
||||||
// https://mui.com/guides/minimizing-bundle-size/#option-2
|
// https://mui.com/guides/minimizing-bundle-size/#option-2
|
||||||
|
// https://github.com/vercel/next.js/discussions/17822
|
||||||
{
|
{
|
||||||
"presets": [
|
"presets": [
|
||||||
[
|
[
|
||||||
@@ -8,6 +9,12 @@
|
|||||||
"preset-react": {
|
"preset-react": {
|
||||||
"runtime": "automatic",
|
"runtime": "automatic",
|
||||||
"importSource": "@emotion/react"
|
"importSource": "@emotion/react"
|
||||||
|
},
|
||||||
|
"preset-env": {
|
||||||
|
"debug": false,
|
||||||
|
"targets": {
|
||||||
|
"browsers": ">1%, not ie 11, not op_mini all"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user