File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 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) {
116116}
117117
118118function 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 ( {
121132 format : 'umd' ,
122- external : Object . keys ( globals ) ,
123- plugins : [ resolve ( ) ] ,
124133 file,
125134 globals,
126135 name,
127- } ) ;
128- } ) ;
136+ } )
137+ ) ;
129138}
130139
131140function createFirebaseBundles ( featurePaths , globals ) {
You can’t perform that action at this time.
0 commit comments