Skip to content

Commit 9f4ceff

Browse files
Merge pull request #3356 from arrowing/patch-1
fix code error
2 parents 4c233fa + 7551f39 commit 9f4ceff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/contribute/plugin-patterns.md

+1-1
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)