Skip to content

Commit 6539bb5

Browse files
JounQinclydin
authored andcommitted
fix(@angular-devkit/build-angular): hot update filename suffix with .mjs
1 parent 5407d6f commit 6539bb5

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)