File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -581,19 +581,19 @@ const applyOutputDefaults = (
581581 } ) ;
582582 F ( output , "chunkFormat" , ( ) => {
583583 if ( tp ) {
584+ if ( tp . document ) return "array-push" ;
584585 if ( tp . require ) return "commonjs" ;
585586 if ( tp . nodeBuiltins ) return "commonjs" ;
586- if ( tp . document ) return "array-push" ;
587587 if ( tp . importScripts ) return "array-push" ;
588588 if ( tp . dynamicImport && output . module ) return "module" ;
589589 }
590590 return false ;
591591 } ) ;
592592 F ( output , "chunkLoading" , ( ) => {
593593 if ( tp ) {
594+ if ( tp . document ) return "jsonp" ;
594595 if ( tp . require ) return "require" ;
595596 if ( tp . nodeBuiltins ) return "async-node" ;
596- if ( tp . document ) return "jsonp" ;
597597 if ( tp . importScripts ) return "import-scripts" ;
598598 if ( tp . dynamicImport && output . module ) return "import" ;
599599 if (
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class ElectronTargetPlugin {
3131 "original-fs" ,
3232 "screen" ,
3333 "shell"
34- ] ) ;
34+ ] ) . apply ( compiler ) ;
3535 switch ( this . _context ) {
3636 case "main" :
3737 new ExternalsPlugin ( "commonjs" , [
You can’t perform that action at this time.
0 commit comments