We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 925f47f commit 2ba5a0aCopy full SHA for 2ba5a0a
templates/Angular2Spa/ClientApp/boot-client.ts
@@ -5,10 +5,9 @@ import { AppModule } from './app/app.module';
5
import 'bootstrap';
6
7
// Enable either Hot Module Reloading or production mode
8
-const hotModuleReplacement = module['hot'];
9
-if (hotModuleReplacement) {
10
- hotModuleReplacement.accept();
11
- hotModuleReplacement.dispose(() => { platform.destroy(); });
+if (module['hot']) {
+ module['hot'].accept();
+ module['hot'].dispose(() => { platform.destroy(); });
12
} else {
13
enableProdMode();
14
}
0 commit comments