Skip to content

Commit 436f76c

Browse files
committed
fix: replace .forEach with for…of in AssetLoggerPlugin example
1 parent 84a7a33 commit 436f76c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/content/contribute/writing-a-plugin.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,10 @@ class AssetLoggerPlugin {
380380
},
381381
(assets) => {
382382
console.log("Generated assets:");
383-
Object.keys(assets).forEach((assetName) => {
383+
for (const assetName of Object.keys(assets)) {
384384
console.log(assetName);
385-
});
386-
}
385+
}
386+
},
387387
);
388388
});
389389
}

0 commit comments

Comments
 (0)