Skip to content

Commit d782eb8

Browse files
committed
【fix】优化es5打包
1 parent f053537 commit d782eb8

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

build/webpack.config.classic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const productName = "iclient-classic";
66

77

88
module.exports = {
9+
target: configBase.target,
910
mode: configBase.mode,
1011
//页面入口文件配置
1112
entry: configBase.entry,

build/webpack.config.leaflet.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const libName = "leaflet";
66
const productName = "iclient-leaflet";
77

88
module.exports = {
9+
target: configBase.target,
910
mode: configBase.mode,
1011
//页面入口文件配置
1112
entry: configBase.entry,

build/webpack.config.mapboxgl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const libName = 'mapboxgl';
55
const productName = 'iclient-mapboxgl';
66

77
module.exports = {
8+
target: configBase.target,
89
mode: configBase.mode,
910
//页面入口文件配置
1011
entry: configBase.entry,

build/webpack.config.openlayers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var externals = [
3131
];
3232

3333
module.exports = {
34+
target: configBase.target,
3435
mode: configBase.mode,
3536
//页面入口文件配置
3637
entry: configBase.entry,

0 commit comments

Comments
 (0)