Remove module.hot

This commit is contained in:
Nathan Bierema 2023-09-16 17:38:21 -04:00
parent 2372a885b1
commit 249b55009a
4 changed files with 1 additions and 13 deletions

View File

@ -87,7 +87,6 @@
"@types/socketcluster-client": "^16.0.0", "@types/socketcluster-client": "^16.0.0",
"@types/styled-components": "^5.1.26", "@types/styled-components": "^5.1.26",
"@types/testing-library__jest-dom": "^5.14.9", "@types/testing-library__jest-dom": "^5.14.9",
"@types/webpack-env": "^1.18.1",
"@typescript-eslint/eslint-plugin": "^6.5.0", "@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0", "@typescript-eslint/parser": "^6.5.0",
"babel-loader": "^9.1.3", "babel-loader": "^9.1.3",

View File

@ -35,14 +35,6 @@ export default function configureStore(
} }
).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__; ).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
} }
if (module.hot) {
// Enable Webpack hot module replacement for reducers
module.hot.accept('../reducers', () => {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const nextReducer = require('../reducers'); // eslint-disable-line global-require
store.replaceReducer(nextReducer as Reducer<StoreState, StoreAction>);
});
}
} }
const store = createStore( const store = createStore(

View File

@ -2,7 +2,7 @@
"extends": "../../tsconfig.react.base.json", "extends": "../../tsconfig.react.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "lib/types", "outDir": "lib/types",
"types": ["webpack-env"] "types": []
}, },
"include": ["src"] "include": ["src"]
} }

View File

@ -1145,9 +1145,6 @@ importers:
'@types/testing-library__jest-dom': '@types/testing-library__jest-dom':
specifier: ^5.14.9 specifier: ^5.14.9
version: 5.14.9 version: 5.14.9
'@types/webpack-env':
specifier: ^1.18.1
version: 1.18.1
'@typescript-eslint/eslint-plugin': '@typescript-eslint/eslint-plugin':
specifier: ^6.5.0 specifier: ^6.5.0
version: 6.5.0(@typescript-eslint/parser@6.5.0)(eslint@8.48.0)(typescript@5.2.2) version: 6.5.0(@typescript-eslint/parser@6.5.0)(eslint@8.48.0)(typescript@5.2.2)