Skip to content

Commit 5b7645d

Browse files
committed
bugfix in LoaderPlugin
1 parent 90c5ade commit 5b7645d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/dependencies/LoaderPlugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ class LoaderPlugin {
4343
map = moduleSource.map();
4444
source = moduleSource.source();
4545
}
46-
if(dep.module.fileDependencies) {
47-
dep.module.fileDependencies.forEach(dep => loaderContext.addDependency(dep));
46+
if(dep.module.buildInfo.fileDependencies) {
47+
dep.module.buildInfo.fileDependencies.forEach(dep => loaderContext.addDependency(dep));
4848
}
49-
if(dep.module.contextDependencies) {
50-
dep.module.contextDependencies.forEach(dep => loaderContext.addContextDependency(dep));
49+
if(dep.module.buildInfo.contextDependencies) {
50+
dep.module.buildInfo.contextDependencies.forEach(dep => loaderContext.addContextDependency(dep));
5151
}
5252
return callback(null, source, map, dep.module);
5353
});

0 commit comments

Comments
 (0)