Skip to content

Commit 0269860

Browse files
fix: context for dependencies (#474)
1 parent 054532a commit 0269860

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/loader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export function pitch(request) {
149149
const count = identifierCountMap.get(dependency.identifier) || 0;
150150

151151
this._module.addDependency(
152-
new CssDependency(dependency, module.context, count)
152+
new CssDependency(dependency, dependency.context, count)
153153
);
154154
identifierCountMap.set(dependency.identifier, count + 1);
155155
}
@@ -191,6 +191,7 @@ export function pitch(request) {
191191

192192
return {
193193
identifier: module.identifier(),
194+
context: module.context,
194195
content,
195196
media,
196197
sourceMap,

0 commit comments

Comments
 (0)