Skip to content

Commit

Permalink
fix: context for dependencies (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Dec 17, 2019
1 parent 054532a commit 0269860
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -191,6 +191,7 @@ export function pitch(request) {

return {
identifier: module.identifier(),
context: module.context,
content,
media,
sourceMap,
Expand Down

0 comments on commit 0269860

Please sign in to comment.