From feafea812a95db05e9b52beaced0def611bba5c8 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Wed, 3 Nov 2021 20:54:30 +0300 Subject: [PATCH] fix: runtime path generation (#1393) --- src/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index b6339c77..6753caa6 100644 --- a/src/utils.js +++ b/src/utils.js @@ -29,7 +29,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 + ) ); }