Skip to content

Commit e2e30b2

Browse files
fix: runtime path in modules without context (#866)
1 parent 12ede98 commit e2e30b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ function stringifyRequest(loaderContext, request) {
7575
typeof loaderContext.utils.contextify === "function"
7676
) {
7777
return JSON.stringify(
78-
loaderContext.utils.contextify(loaderContext.context, request)
78+
loaderContext.utils.contextify(
79+
loaderContext.context || loaderContext.rootContext,
80+
request
81+
)
7982
);
8083
}
8184

0 commit comments

Comments
 (0)