-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build!: rm
targets
, add .browserslistrc (#1003)
BREAKING CHANGE: `targets` are no longer set for `@babel/preset-env`. In this commit, we introduced a breaking change in the way that browser `targets` work, namely in that the targets are no longer set and the user is expected to provide their own `.browserslistrc` or similar configuration. The previous behavior was to have browser `targets`, which overrides any other configuration, including `.browserslistrc`. From the `@babel/preset-env` documentation[^1]: > By default `@babel/preset-env` will use browserslist config sources > unless either the `targets` or `ignoreBrowserslistConfig` options are > set. When upgrading to the next major version that includes this change, *you must provide your own configuration* or else Babel will default to using the oldest browsers available[^2]. 1. https://babeljs.io/docs/en/babel-preset-env#browserslist-integration 2. https://babeljs.io/docs/en/options#no-targets
- Loading branch information
Showing
4 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Browsers that we support | ||
|
||
>1% | ||
last 4 versions | ||
not ie > 0 | ||
not bb > 0 | ||
not ie_mob > 0 | ||
not opera > 0 | ||
not kaios > 0 | ||
not op_mob > 0 | ||
not op_mini all | ||
not baidu > 0 |
12 changes: 12 additions & 0 deletions
12
packages/kyt-starter-universal/starter-src/.browserslistrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Browsers that we support | ||
|
||
>1% | ||
last 4 versions | ||
not ie > 0 | ||
not bb > 0 | ||
not ie_mob > 0 | ||
not opera > 0 | ||
not kaios > 0 | ||
not op_mob > 0 | ||
not op_mini all | ||
not baidu > 0 |