Skip to content

Commit 63bcb9b

Browse files
committed
【fix】include
1 parent f7d3009 commit 63bcb9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dist/maplibregl/include-maplibregl.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@
5353
var libsurl = config.libsurl;
5454
var includes = (targetScript.getAttribute('include') || '').split(',');
5555
var excludes = (targetScript.getAttribute('exclude') || '').split(',');
56-
inputCSS(libsurl + '/maplibre-gl-js/3.1.0/maplibre-gl.css');
57-
inputScript(libsurl + '/maplibre-gl-js/3.1.0/maplibre-gl.js');
56+
if (!inArray(excludes, 'maplibregl')) {
57+
inputCSS(libsurl + '/maplibre-gl-js/3.1.0/maplibre-gl.css');
58+
inputScript(libsurl + '/maplibre-gl-js/3.1.0/maplibre-gl.js');
59+
}
5860
if (inArray(includes, 'turf')) {
5961
inputScript(libsurl + '/turf/6.5.0/turf.min.js');
6062
}

0 commit comments

Comments
 (0)