Skip to content

Commit f3c5cc5

Browse files
authored
Merge branch 'master' into fix/loader-api-adddependency
2 parents 272cb19 + 9f4ceff commit f3c5cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/contribute/plugin-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MyPlugin {
2121
// Explore each module within the chunk (built inputs):
2222
chunk.getModules().forEach(module => {
2323
// Explore each source file path that was included into the module:
24-
module.fileDependencies.forEach(filepath => {
24+
module.buildInfo && module.buildInfo.fileDependencies && module.buildInfo.fileDependencies.forEach(filepath => {
2525
// we've learned a lot about the source structure now...
2626
});
2727
});

0 commit comments

Comments
 (0)