mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 04:26:01 +08:00
fix(@angular-devkit/build-angular): hot update filename suffix with .mjs
This commit is contained in:
parent
5407d6f0e0
commit
6539bb5200
@ -54,7 +54,8 @@ export class IndexHtmlWebpackPlugin extends IndexHtmlGenerator {
|
|||||||
try {
|
try {
|
||||||
for (const chunk of this.compilation.chunks) {
|
for (const chunk of this.compilation.chunks) {
|
||||||
for (const file of chunk.files) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user