File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ loader.pitch = function(request) {
8383 // only process entry exports
8484 if ( current . resource !== entry ) return ;
8585
86- let exports = compilation . __workerizeExports || ( compilation . __workerizeExports = { } ) ;
86+ let exports = CACHE [ entry ] || ( CACHE [ entry ] = { } ) ;
8787
8888 if ( decl . id ) {
8989 exports [ decl . id . name ] = true ;
@@ -106,8 +106,9 @@ loader.pitch = function(request) {
106106 if ( entries [ 0 ] ) {
107107 worker . file = entries [ 0 ] . files [ 0 ] ;
108108
109+ let entry = entries [ 0 ] . entryModule . resource ;
109110 let contents = compilation . assets [ worker . file ] . source ( ) ;
110- let exports = Object . keys ( CACHE [ worker . file ] = compilation . __workerizeExports || CACHE [ worker . file ] || { } ) ;
111+ let exports = Object . keys ( CACHE [ entry ] || { } ) ;
111112
112113 // console.log('Workerized exports: ', exports.join(', '));
113114
You can’t perform that action at this time.
0 commit comments