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`

(cherry picked from commit 6539bb5)
  • Loading branch information
JounQin authored and clydin committed Jul 28, 2023
1 parent a145cab commit 1dab4ed
Showing 1 changed file with 2 additions and 1 deletion.
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 1dab4ed

Please sign in to comment.