Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit bfd6aaf

Browse files
committed
remove types field to fix webpack module properties resolution
remove mocha types (unused) "So, if you have followed convention or used a tooling set such as npm to download @types packages, you don't need to configure typeRoots or types in your configuration as it will work out of the box with the default folder structure." https://stackoverflow.com/a/42239406/8638301
1 parent 9391665 commit bfd6aaf

File tree

6 files changed

+1055
-2370
lines changed

6 files changed

+1055
-2370
lines changed

app/app.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const render = (messages: any, Component = App) => {
6060
);
6161
};
6262

63-
declare const module: any;
6463
if (module.hot) {
6564
module.hot.accept(['./i18n', './containers/App'], () => {
6665
ReactDOM.unmountComponentAtNode(MOUNT_NODE);

app/configureStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export default function configureStore(initialState: RootState | {} = {}, histor
5757

5858
// Make reducers hot reloadable, see http://mxs.is/googmo
5959
/* istanbul ignore next */
60-
if (module['hot']) {
61-
module['hot'].accept('./reducers', () => {
60+
if (module.hot) {
61+
module.hot.accept('./reducers', () => {
6262
store.replaceReducer(createReducer(store.injectedReducers));
6363
});
6464
}

internals/templates/app.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const render = (messages: any, Component = App) => {
6060
);
6161
};
6262

63-
declare const module: any;
6463
if (module.hot) {
6564
module.hot.accept(['./i18n', './containers/App'], () => {
6665
ReactDOM.unmountComponentAtNode(MOUNT_NODE);

0 commit comments

Comments
 (0)