Skip to content
This repository was archived by the owner on Sep 9, 2021. It is now read-only.

Commit 4f9b240

Browse files
authoredJul 30, 2020
fix: cache identifier for webpack@4 (#270)
1 parent 5047abb commit 4f9b240

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/supportWebpack4.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
import { stringifyRequest } from 'loader-utils';
2+
13
import { getWorker, sourceMappingURLRegex } from './utils';
24

35
export default function runAsChild(worker, request, options, callback) {
4-
const subCache = `subcache worker-loader ${request}`;
6+
const subCache = `subcache worker-loader ${stringifyRequest(
7+
{ context: this.rootContext },
8+
request
9+
)}`;
510

611
// eslint-disable-next-line no-param-reassign
712
worker.compilation = (compilation) => {

0 commit comments

Comments
 (0)
This repository has been archived.