Skip to content

Commit e082098

Browse files
committed
Enable hot reloading
1 parent c20d683 commit e082098

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"@types/webpack": "^4.4.17",
161161
"@types/webpack-bundle-analyzer": "^4.6.3",
162162
"@types/webpack-dev-server": "^3.1.1",
163-
"@types/webpack-env": "^1.13.6",
163+
"@types/webpack-env": "^1.18.4",
164164
"@types/webpack-merge": "^4.1.3",
165165
"arraybuffer-loader": "^1.0.8",
166166
"assert": "^2.1.0",

src/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,8 @@ Promise.race([
149149
logError('Successfully initialized application, but after timeout');
150150
});
151151
});
152-
});
152+
});
153+
154+
if (module.hot) {
155+
module.hot.accept();
156+
}

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
// Limit the global types included, to fix https://github.com/DefinitelyTyped/DefinitelyTyped/issues/33015
2424
"types": [
25-
"node"
25+
"node",
26+
"webpack-env"
2627
],
2728

2829
"plugins": [

0 commit comments

Comments
 (0)