Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): hot update filename suffix with `…
Browse files Browse the repository at this point in the history
….mjs`
  • Loading branch information
JounQin authored and clydin committed Jul 28, 2023
1 parent 5407d6f commit 6539bb5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export class IndexHtmlWebpackPlugin extends IndexHtmlGenerator {
try {
for (const chunk of this.compilation.chunks) {
for (const file of chunk.files) {
if (file.endsWith('.hot-update.js')) {
// https://github.com/webpack/webpack/blob/1f99ad6367f2b8a6ef17cce0e058f7a67fb7db18/lib/config/defaults.js#L1000
if (file.endsWith('.hot-update.js') || file.endsWith('.hot-update.mjs')) {
continue;
}

Expand Down

0 comments on commit 6539bb5

Please sign in to comment.