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) {
83
83
// only process entry exports
84
84
if ( current . resource !== entry ) return ;
85
85
86
- let exports = compilation . __workerizeExports || ( compilation . __workerizeExports = { } ) ;
86
+ let exports = CACHE [ entry ] || ( CACHE [ entry ] = { } ) ;
87
87
88
88
if ( decl . id ) {
89
89
exports [ decl . id . name ] = true ;
@@ -106,8 +106,9 @@ loader.pitch = function(request) {
106
106
if ( entries [ 0 ] ) {
107
107
worker . file = entries [ 0 ] . files [ 0 ] ;
108
108
109
+ let entry = entries [ 0 ] . entryModule . resource ;
109
110
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 ] || { } ) ;
111
112
112
113
// console.log('Workerized exports: ', exports.join(', '));
113
114
You can’t perform that action at this time.
0 commit comments