@@ -20,17 +20,24 @@ module.exports = {
2020 //其它解决方案配置
2121 resolve : configBase . resolve ,
2222
23- externals : Object . assign ( { } , configBase . externals , {
24- 'mapbox-gl' : 'mapboxgl' ,
25- three : 'function(){try{return THREE}catch(e){return {}}}()' ,
26- 'deck.gl' : '(function(){try{return DeckGL}catch(e){return {}}})()' ,
27- 'luma.gl' : '(function(){try{return luma}catch(e){return {}}})()' ,
28- 'webgl-debug' : '(function(){try{return webgl-debug}catch(e){return {}}})()' ,
29- xlsx : 'function(){try{return XLSX}catch(e){return {}}}()' ,
30- canvg : 'function(){try{return canvg}catch(e){return {}}}()' ,
31- jsonsql : 'function(){try{return jsonsql}catch(e){return {}}}()' ,
32- 'xml-js' : 'function(){try{return convert}catch(e){return {}}}()'
33- } ) ,
23+ externals : [
24+ Object . assign ( { } , configBase . externals , {
25+ 'mapbox-gl' : 'mapboxgl' ,
26+ three : 'function(){try{return THREE}catch(e){return {}}}()' ,
27+ 'deck.gl' : '(function(){try{return DeckGL}catch(e){return {}}})()' ,
28+ 'luma.gl' : '(function(){try{return luma}catch(e){return {}}})()' ,
29+ 'webgl-debug' : '(function(){try{return webgl-debug}catch(e){return {}}})()' ,
30+ xlsx : 'function(){try{return XLSX}catch(e){return {}}}()' ,
31+ canvg : 'function(){try{return canvg}catch(e){return {}}}()' ,
32+ jsonsql : 'function(){try{return jsonsql}catch(e){return {}}}()'
33+ } ) ,
34+ function ( { context, request} , callback ) {
35+ if ( / x m l - j s \/ l i b \/ x m l 2 j s o n / . test ( request ) ) {
36+ return callback ( null , 'function(){try{return xml2json}catch(e){return {}}}()' ) ;
37+ }
38+ callback ( ) ;
39+ }
40+ ] ,
3441
3542 module : {
3643 noParse : / [ \/ \\ ] n o d e _ m o d u l e s [ \/ \\ ] m a p b o x - g l [ \/ \\ ] d i s t [ \/ \\ ] m a p b o x - g l \. j s $ / ,
0 commit comments