Skip to content

Commit

Permalink
fix: crash in custom importers with worker threads (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed May 26, 2021
1 parent 2b6b4f3 commit 67aa139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.js
Expand Up @@ -81,9 +81,9 @@ function proxyCustomImporters(importers, loaderContext) {
return [].concat(importers).map(
(importer) =>
function proxyImporter(...args) {
this.webpackLoaderContext = loaderContext;
const self = { ...this, webpackLoaderContext: loaderContext };

return importer.apply(this, args);
return importer.apply(self, args);
}
);
}
Expand Down

0 comments on commit 67aa139

Please sign in to comment.