Skip to content

Commit b26e8e2

Browse files
fix(overmind): prevent hot reload cache in node
1 parent dc92870 commit b26e8e2

File tree

1 file changed

+5
-1
lines changed
  • packages/node_modules/overmind/src

1 file changed

+5
-1
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ export class Overmind<ThisConfig extends IConfiguration>
204204
) {
205205
const name = options.name || 'OvermindApp'
206206

207-
if (IS_DEVELOPMENT && mode.mode === MODE_DEFAULT) {
207+
if (
208+
IS_DEVELOPMENT &&
209+
mode.mode === MODE_DEFAULT &&
210+
!(process && process.title === 'node')
211+
) {
208212
if (hotReloadingCache[name]) {
209213
return hotReloadingCache[name].reconfigure(configuration)
210214
} else {

0 commit comments

Comments
 (0)