File tree Expand file tree Collapse file tree 1 file changed +16
-18
lines changed Expand file tree Collapse file tree 1 file changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -153,28 +153,26 @@ function findExternalOrigin(issuer) {
153153}
154154
155155function getExternalModules ( stats ) {
156- if ( stats . compilation . chunks ) {
157- const externals = new Set ( ) ;
158- for ( const chunk of stats . compilation . chunks ) {
159- if ( ! chunk . modulesIterable ) {
160- continue ;
161- }
156+ if ( ! stats . compilation . chunks ) {
157+ return [ ] ;
158+ }
159+ const externals = new Set ( ) ;
160+ for ( const chunk of stats . compilation . chunks ) {
161+ if ( ! chunk . modulesIterable ) {
162+ continue ;
163+ }
162164
163- // Explore each module within the chunk (built inputs):
164- for ( const module of chunk . modulesIterable ) {
165- if ( isExternalModule ( module ) ) {
166- externals . add ( {
167- origin : _ . get ( findExternalOrigin ( module . issuer ) , 'rawRequest' ) ,
168- external : getExternalModuleName ( module )
169- } ) ;
170- }
165+ // Explore each module within the chunk (built inputs):
166+ for ( const module of chunk . modulesIterable ) {
167+ if ( isExternalModule ( module ) ) {
168+ externals . add ( {
169+ origin : _ . get ( findExternalOrigin ( module . issuer ) , 'rawRequest' ) ,
170+ external : getExternalModuleName ( module )
171+ } ) ;
171172 }
172173 }
173-
174- return Array . from ( externals ) ;
175174 }
176-
177- return [ ] ;
175+ return Array . from ( externals ) ;
178176}
179177
180178module . exports = {
You can’t perform that action at this time.
0 commit comments