Skip to content

Commit e36811a

Browse files
committed
🐛 fix hot reload when install deps with pnpm
1 parent d4cf443 commit e36811a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack/entry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function client(options) {
55
return options.entry
66
}
77
return [
8-
'webpack-hot-middleware/client?log=false&path=/nullstack/hmr&noInfo=true&quiet=true&timeout=1000&reload=true',
8+
`${require.resolve('webpack-hot-middleware/client')}?log=false&path=/nullstack/hmr&noInfo=true&quiet=true&timeout=1000&reload=true`,
99
path.posix.join(options.configFolder, 'shared', 'accept.js'),
1010
options.entry
1111
]
@@ -30,4 +30,4 @@ function entry(options) {
3030
}
3131
}
3232

33-
module.exports = entry
33+
module.exports = entry

0 commit comments

Comments
 (0)