-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: update browser build (#12693)
- Loading branch information
1 parent
00ddfff
commit 4e16957
Showing
2 changed files
with
21 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,28 @@ module.exports = { | |
test: /\.m?js$/u, | ||
loader: "babel-loader", | ||
options: { | ||
presets: ["@babel/preset-env"] | ||
presets: [ | ||
["@babel/preset-env", { | ||
debug: true, // ← to print actual browser versions | ||
|
||
/* | ||
* We want to remove `transform-unicode-regex` convert because of https://github.com/eslint/eslint/pull/12662. | ||
* | ||
* With `>0.5%`, `@babel/[email protected]` prints below: | ||
* | ||
* transform-unicode-regex { "chrome":"49", "ie":"11", "safari":"5.1" } | ||
* | ||
* So this excludes those versions: | ||
* | ||
* - IE 11 | ||
* - Chrome 49 (2016; the last version on Windows XP) | ||
* - Safari 5.1 (2011-2013; the last version on Windows) | ||
*/ | ||
targets: ">0.5%, not chrome 49, not ie 11, not safari 5.1" | ||
}] | ||
] | ||
}, | ||
exclude: /node_modules\/lodash/u | ||
exclude: /node_modules[\\/]lodash/u | ||
} | ||
] | ||
}, | ||
|