From 1810191be200d719c7d521830990cbae4dcf1001 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 12 Aug 2023 10:09:03 +0200 Subject: [PATCH] Remove the `src/core/` Babel excludes, since they no longer seem necessary - The `src/core/unicode.js` exclude ought to have become unnecessary already with PR 16200, which significantly shortened and simplified that file. - The `src/core/glyphlist.js` exclude no longer seems necessary in practice either, possibly because of improvements in Babel. --- gulpfile.mjs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gulpfile.mjs b/gulpfile.mjs index 067de1c95..966cf3f50 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -202,13 +202,9 @@ function createWebpackConfig( !disableSourceMaps; const skipBabel = bundleDefines.SKIP_BABEL; - // `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. + // `core-js`, see https://github.com/zloirock/core-js/issues/514, + // should be excluded from processing. const babelExcludes = ["node_modules[\\\\\\/]core-js"]; - if (enableSourceMaps) { - babelExcludes.push("src[\\\\\\/]core[\\\\\\/](glyphlist|unicode)"); - } const babelExcludeRegExp = new RegExp(`(${babelExcludes.join("|")})`); const babelPresets = skipBabel