File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ async function processScript(filePath) {
82
82
'"use strict";\n\nvar PromisePolyfill = require("promise-polyfill");\nPromise = PromisePolyfill.default;' ,
83
83
) ;
84
84
const promise = bundleModule ( 'promise-polyfill' ) ;
85
- waitList . push ( promise ) ;
85
+ waitList ? .push ( promise ) ;
86
86
}
87
87
88
88
traverse . default ( ast , {
@@ -96,7 +96,7 @@ async function processScript(filePath) {
96
96
}
97
97
98
98
const promise = bundleModule ( node . arguments [ 0 ] . value ) ;
99
- waitList . push ( promise ) ;
99
+ waitList ? .push ( promise ) ;
100
100
} ,
101
101
} ) ;
102
102
@@ -169,7 +169,7 @@ async function dev() {
169
169
} )
170
170
. on ( 'add' , ( filePath ) => {
171
171
const promise = cb ( filePath ) ;
172
- waitList . push ( promise ) ;
172
+ waitList ? .push ( promise ) ;
173
173
} )
174
174
. on ( 'change' , ( filePath ) => {
175
175
cb ( filePath ) ;
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ async function processScript(filePath) {
82
82
'"use strict";\n\nvar PromisePolyfill = require("promise-polyfill");\nPromise = PromisePolyfill.default;' ,
83
83
) ;
84
84
const promise = bundleModule ( 'promise-polyfill' ) ;
85
- waitList . push ( promise ) ;
85
+ waitList ? .push ( promise ) ;
86
86
}
87
87
88
88
traverse . default ( ast , {
@@ -96,7 +96,7 @@ async function processScript(filePath) {
96
96
}
97
97
98
98
const promise = bundleModule ( node . arguments [ 0 ] . value ) ;
99
- waitList . push ( promise ) ;
99
+ waitList ? .push ( promise ) ;
100
100
} ,
101
101
} ) ;
102
102
@@ -169,7 +169,7 @@ async function dev() {
169
169
} )
170
170
. on ( 'add' , ( filePath ) => {
171
171
const promise = cb ( filePath ) ;
172
- waitList . push ( promise ) ;
172
+ waitList ? .push ( promise ) ;
173
173
} )
174
174
. on ( 'change' , ( filePath ) => {
175
175
cb ( filePath ) ;
You can’t perform that action at this time.
0 commit comments