Skip to content

Commit 1dab4ed

Browse files
JounQinclydin
authored andcommitted
fix(@angular-devkit/build-angular): hot update filename suffix with .mjs
(cherry picked from commit 6539bb5)
1 parent a145cab commit 1dab4ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/angular_devkit/build_angular/src/tools/webpack/plugins/index-html-webpack-plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export class IndexHtmlWebpackPlugin extends IndexHtmlGenerator {
5454
try {
5555
for (const chunk of this.compilation.chunks) {
5656
for (const file of chunk.files) {
57-
if (file.endsWith('.hot-update.js')) {
57+
// https://github.com/webpack/webpack/blob/1f99ad6367f2b8a6ef17cce0e058f7a67fb7db18/lib/config/defaults.js#L1000
58+
if (file.endsWith('.hot-update.js') || file.endsWith('.hot-update.mjs')) {
5859
continue;
5960
}
6061

0 commit comments

Comments
 (0)