Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 1c59520

Browse files
committed
Tweak regex, increment version again
1 parent bd0d611 commit 1c59520

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/webpack-config/babel-loader-config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function getConfigForNodeModules(urc) {
122122
// incompatible with babel without additional configuration beacuse it uses
123123
// an inlined webworker.
124124
function getNodeModuleExclude({ urc }) {
125-
const ignores = [/@babel(?:\/|\\{1,2})runtime/];
125+
const excludes = [/@babel(?:\/|\\{1,2})runtime/];
126126

127127
let usesMapboxGl2 = false;
128128
try {
@@ -134,10 +134,10 @@ function getNodeModuleExclude({ urc }) {
134134
} catch (e) {} // eslint-disable-line
135135

136136
if (usesMapboxGl2) {
137-
ignores.push(/[/\\\\]node_modules\/mapbox-gl\//);
137+
excludes.push(/[/\\\\]node_modules\/mapbox-gl\/dist.*\.js/);
138138
}
139139

140-
return ignores;
140+
return excludes;
141141
}
142142

143143
// `babel-preset-mapbox` depends on the `browserslist` and

0 commit comments

Comments
 (0)