Skip to content

Commit 492688f

Browse files
committed
HMR typing
1 parent 5879e95 commit 492688f

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

packages/app/app/store/configureStore.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ import rootReducer from '../reducers';
77
import syncStore from './enhancers/syncStorage';
88
import ipcConnect from './middlewares/ipc';
99

10+
declare global {
11+
interface NodeModule {
12+
hot?: {
13+
accept: (path: string, callback: () => void) => void;
14+
};
15+
}
16+
}
17+
1018
export default function configureStore(initialState) {
1119
const composeEnhancers = process.env.NODE_ENV === 'production'
1220
? compose

packages/app/webpack.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ module.exports = (env) => {
246246
static: {
247247
publicPath: '/'
248248
},
249+
client: {
250+
overlay: false
251+
},
249252
watchFiles: ['../../packages/**/*.{js,jsx,ts,tsx}'],
250253
allowedHosts: 'all'
251254
};

0 commit comments

Comments
 (0)