From 5d958e74278675d43fc2020337e2501161762144 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Tue, 17 Dec 2019 20:26:19 +0300 Subject: [PATCH] fix: context for dependencies --- src/loader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/loader.js b/src/loader.js index 774b8a97..e3791c70 100644 --- a/src/loader.js +++ b/src/loader.js @@ -149,7 +149,7 @@ export function pitch(request) { const count = identifierCountMap.get(dependency.identifier) || 0; this._module.addDependency( - new CssDependency(dependency, module.context, count) + new CssDependency(dependency, dependency.context, count) ); identifierCountMap.set(dependency.identifier, count + 1); } @@ -191,6 +191,7 @@ export function pitch(request) { return { identifier: module.identifier(), + context: module.context, content, media, sourceMap,