@@ -4,13 +4,17 @@ const libName = 'mapboxgl';
44//产品包名
55const productName = 'iclient-mapboxgl' ;
66//复制文件
7- const CopyPlugin = require ( " copy-webpack-plugin" ) ;
7+ const CopyPlugin = require ( ' copy-webpack-plugin' ) ;
88
99module . exports = {
1010 target : configBase . target ,
1111 mode : configBase . mode ,
1212 //页面入口文件配置
13- entry : [ ...configBase . entry , `${ __dirname } /../src/mapboxgl/namespace.js` , `${ __dirname } /../src/mapboxgl/css/index.js` ] ,
13+ entry : [
14+ ...configBase . entry ,
15+ `${ __dirname } /../src/mapboxgl/namespace.js` ,
16+ `${ __dirname } /../src/mapboxgl/css/index.js`
17+ ] ,
1418 //入口文件输出配置
1519 output : configBase . output ( libName , productName ) ,
1620 //是否启用压缩
@@ -29,9 +33,10 @@ module.exports = {
2933 'webgl-debug' : '(function(){try{return webgl-debug}catch(e){return {}}})()' ,
3034 xlsx : 'function(){try{return XLSX}catch(e){return {}}}()' ,
3135 canvg : 'function(){try{return canvg}catch(e){return {}}}()' ,
32- '@turf/turf' : " function(){try{return turf}catch(e){return {}}}()" ,
36+ '@turf/turf' : ' function(){try{return turf}catch(e){return {}}}()' ,
3337 jsonsql : 'function(){try{return jsonsql}catch(e){return {}}}()' ,
34- './L7/l7-render' : 'function(){try{return L7}catch(e){return {}}}()'
38+ './L7/l7-render' : 'function(){try{return L7}catch(e){return {}}}()' ,
39+ '@antv/g2' : 'function(){try{return G2}catch(e){return {}}}()'
3540 } )
3641 ] ,
3742
@@ -60,8 +65,8 @@ module.exports = {
6065 ]
6166 ]
6267 }
63- }
64- configBase . moduleVersion === " es6" && ( babelConfig . include = / F G B L a y e r | f l a t g e o b u f / ) ;
68+ } ;
69+ configBase . moduleVersion === ' es6' && ( babelConfig . include = / F G B L a y e r | f l a t g e o b u f / ) ;
6570 moduleRules . push ( babelConfig ) ;
6671 moduleRules . push ( configBase . module . rules . css ) ;
6772 return moduleRules ;
0 commit comments