Skip to content

Commit

Permalink
fix: runtime path in modules without context (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Nov 4, 2021
1 parent 12ede98 commit e2e30b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ function stringifyRequest(loaderContext, request) {
typeof loaderContext.utils.contextify === "function"
) {
return JSON.stringify(
loaderContext.utils.contextify(loaderContext.context, request)
loaderContext.utils.contextify(
loaderContext.context || loaderContext.rootContext,
request
)
);
}

Expand Down

0 comments on commit e2e30b2

Please sign in to comment.