Merge pull request #16829 from Snuffleupagus/gulpfile-rm-src-babel-excludes
Remove the `src/core/` Babel excludes, since they no longer seem necessary
This commit is contained in:
commit
690b873897
@ -202,13 +202,9 @@ function createWebpackConfig(
|
|||||||
!disableSourceMaps;
|
!disableSourceMaps;
|
||||||
const skipBabel = bundleDefines.SKIP_BABEL;
|
const skipBabel = bundleDefines.SKIP_BABEL;
|
||||||
|
|
||||||
// `core-js` (see https://github.com/zloirock/core-js/issues/514), and
|
// `core-js`, see https://github.com/zloirock/core-js/issues/514,
|
||||||
// `src/core/{glyphlist,unicode}.js` (Babel is too slow for those when
|
// should be excluded from processing.
|
||||||
// source-maps are enabled) should be excluded from processing.
|
|
||||||
const babelExcludes = ["node_modules[\\\\\\/]core-js"];
|
const babelExcludes = ["node_modules[\\\\\\/]core-js"];
|
||||||
if (enableSourceMaps) {
|
|
||||||
babelExcludes.push("src[\\\\\\/]core[\\\\\\/](glyphlist|unicode)");
|
|
||||||
}
|
|
||||||
const babelExcludeRegExp = new RegExp(`(${babelExcludes.join("|")})`);
|
const babelExcludeRegExp = new RegExp(`(${babelExcludes.join("|")})`);
|
||||||
|
|
||||||
const babelPresets = skipBabel
|
const babelPresets = skipBabel
|
||||||
|
Loading…
Reference in New Issue
Block a user