From bb6bb137cf6ded765516947f8a96888667393266 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 17 Apr 2022 10:16:50 +0200 Subject: [PATCH] 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. --- gulpfile.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index e83d4c298..c54698191 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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)"); }