From 7881a9c719d7d5bfae998301826ef3a3a67aebf9 Mon Sep 17 00:00:00 2001 From: rusconn Date: Sun, 27 Mar 2022 23:59:01 +0900 Subject: [PATCH] build: exclude minor browsers from build targets --- .babelrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.babelrc b/.babelrc index ffa5ba3..ad3e93c 100644 --- a/.babelrc +++ b/.babelrc @@ -1,5 +1,6 @@ // https://emotion.sh/docs/css-prop##babel-preset // https://mui.com/guides/minimizing-bundle-size/#option-2 +// https://github.com/vercel/next.js/discussions/17822 { "presets": [ [ @@ -8,6 +9,12 @@ "preset-react": { "runtime": "automatic", "importSource": "@emotion/react" + }, + "preset-env": { + "debug": false, + "targets": { + "browsers": ">1%, not ie 11, not op_mini all" + } } } ]