You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
// If the app uses mapbox-gl 2.0+, do not transpile. mapbox-gl 2.0+ is
119
+
// incompatible with babel without additional configuration beacuse it uses
120
+
// an inlined webworker.
121
+
letexcludeList=urc.excludeCompileNodeModules||[];
122
+
if(usesMapboxGl2({ urc })&&!selectiveCompile){
123
+
excludeList=excludeList.concat('mapbox-gl');
124
+
}
125
+
126
+
// If excludeList is provided, compile all node modules except the provided
127
+
// list of modules.
128
+
if(excludeList.length){
129
+
if(selectiveCompile){
130
+
thrownewError(
131
+
"Cannot use 'excludeCompileNodeModules' if 'compileNodeModules' is an array. If you want to exclude a list of modules and include the rest, set 'compileNodeModules: true'."
0 commit comments