File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ const es5Builds = [
50
50
output : [ { file : pkg . main , format : 'cjs' , sourcemap : true } ] ,
51
51
plugins : es5BuildPlugins ,
52
52
external : id => deps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) ) ,
53
- onwarn : onWarn
53
+ onwarn : onWarn ,
54
+ treeshake : {
55
+ moduleSideEffects : false
56
+ }
54
57
} ,
55
58
/**
56
59
* Browser Builds
@@ -60,7 +63,10 @@ const es5Builds = [
60
63
output : [ { file : pkg . module , format : 'es' , sourcemap : true } ] ,
61
64
plugins : es5BuildPlugins ,
62
65
external : id => deps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) ) ,
63
- onwarn : onWarn
66
+ onwarn : onWarn ,
67
+ treeshake : {
68
+ moduleSideEffects : false
69
+ }
64
70
}
65
71
] ;
66
72
@@ -88,7 +94,10 @@ const es2017Builds = [
88
94
output : [ { file : pkg . esm2017 , format : 'es' , sourcemap : true } ] ,
89
95
plugins : es2017BuildPlugins ,
90
96
external : id => deps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) ) ,
91
- onwarn : onWarn
97
+ onwarn : onWarn ,
98
+ treeshake : {
99
+ moduleSideEffects : false
100
+ }
92
101
}
93
102
] ;
94
103
You can’t perform that action at this time.
0 commit comments