1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-28 00:44:30 +07:00

build: added typings for hot reload (#187)

This commit is contained in:
Thomas Klein 2019-10-12 11:41:54 +02:00 committed by Juan Picado @jotadeveloper
parent 7548c89401
commit 3b4d823845
3 changed files with 7 additions and 3 deletions

View File

@ -29,6 +29,7 @@
"@types/react-dom": "16.9.0",
"@types/react-router-dom": "5.1.0",
"@types/validator": "10.11.3",
"@types/webpack-env": "1.14.0",
"@typescript-eslint/parser": "2.3.2",
"@verdaccio/babel-preset": "2.0.0",
"@verdaccio/eslint-config": "2.0.0",
@ -85,9 +86,9 @@
"react": "16.10.0",
"react-autosuggest": "9.4.3",
"react-dom": "16.10.0",
"react-router-dom": "5.1.2",
"react-emotion": "9.2.12",
"react-hot-loader": "4.12.11",
"react-router-dom": "5.1.2",
"resolve-url-loader": "3.1.0",
"rimraf": "3.0.0",
"source-map-loader": "0.2.4",

View File

@ -19,9 +19,7 @@ const renderApp = (Component: React.ElementType): void => {
renderApp(App);
// @ts-ignore
if (module.hot) {
// @ts-ignore
module.hot.accept('./App', () => {
renderApp(App);
});

View File

@ -1768,6 +1768,11 @@
"@types/unist" "*"
"@types/vfile-message" "*"
"@types/webpack-env@1.14.0":
version "1.14.0"
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.14.0.tgz#8edfc5f8e6eae20eeed3ca0d02974ed4ee5e4efc"
integrity sha512-Fv+0gYJzE/czLoRKq+gnXWr4yBpPM3tO3C8pDLFwqVKlMICQUq5OsxwwFZYDaVr7+L6mgNDp16iOcJHEz3J5RQ==
"@types/yargs-parser@*":
version "13.1.0"
resolved "https://registry.verdaccio.org/@types%2fyargs-parser/-/yargs-parser-13.1.0.tgz#c563aa192f39350a1d18da36c5a8da382bbd8228"