Remove the web-streams-polyfill
Babel-exclusion in gulpfile.js
(PR 14560 follow-up)
Given that we're no longer, after PR 14560, bundling the `web-streams-polyfill`-code in the `legacy`-builds we shouldn't need to exclude it from Babel now.
This commit is contained in:
parent
49d1121f3c
commit
bb6bb137cf
@ -199,14 +199,10 @@ function createWebpackConfig(
|
||||
!disableSourceMaps;
|
||||
const skipBabel = bundleDefines.SKIP_BABEL;
|
||||
|
||||
// `core-js` (see https://github.com/zloirock/core-js/issues/514),
|
||||
// `web-streams-polyfill` (already using a transpiled file), and
|
||||
// `core-js` (see https://github.com/zloirock/core-js/issues/514), and
|
||||
// `src/core/{glyphlist,unicode}.js` (Babel is too slow for those when
|
||||
// source-maps are enabled) should be excluded from processing.
|
||||
const babelExcludes = [
|
||||
"node_modules[\\\\\\/]core-js",
|
||||
"node_modules[\\\\\\/]web-streams-polyfill",
|
||||
];
|
||||
const babelExcludes = ["node_modules[\\\\\\/]core-js"];
|
||||
if (enableSourceMaps) {
|
||||
babelExcludes.push("src[\\\\\\/]core[\\\\\\/](glyphlist|unicode)");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user