File tree 1 file changed +15
-6
lines changed
1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -116,16 +116,25 @@ function spawnObservable(command, args) {
116
116
}
117
117
118
118
function generateBundle ( input , { file, globals, name } ) {
119
- return rollup ( { input } ) . then ( bundle => {
120
- return bundle . write ( {
119
+ return rollup ( {
120
+ input,
121
+ external : Object . keys ( globals ) ,
122
+ plugins : [ resolve ( ) ] ,
123
+ onwarn : warning => {
124
+ // Supress Typescript this warning
125
+ // https://github.com/rollup/rollup/wiki/Troubleshooting#this-is-undefined
126
+ if ( warning . code !== 'THIS_IS_UNDEFINED' ) {
127
+ console . log ( warning . message ) ;
128
+ }
129
+ }
130
+ } ) . then ( bundle =>
131
+ bundle . write ( {
121
132
format : 'umd' ,
122
- external : Object . keys ( globals ) ,
123
- plugins : [ resolve ( ) ] ,
124
133
file,
125
134
globals,
126
135
name,
127
- } ) ;
128
- } ) ;
136
+ } )
137
+ ) ;
129
138
}
130
139
131
140
function createFirebaseBundles ( featurePaths , globals ) {
You can’t perform that action at this time.
0 commit comments