From e36811a3e64b8c7686363157f5a427787aebd66b Mon Sep 17 00:00:00 2001 From: HallexCosta Date: Tue, 13 Jun 2023 10:41:33 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20hot=20reload=20when=20inst?= =?UTF-8?q?all=20deps=20with=20pnpm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webpack/entry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack/entry.js b/webpack/entry.js index afca360d..a1ebaefe 100644 --- a/webpack/entry.js +++ b/webpack/entry.js @@ -5,7 +5,7 @@ function client(options) { return options.entry } return [ - 'webpack-hot-middleware/client?log=false&path=/nullstack/hmr&noInfo=true&quiet=true&timeout=1000&reload=true', + `${require.resolve('webpack-hot-middleware/client')}?log=false&path=/nullstack/hmr&noInfo=true&quiet=true&timeout=1000&reload=true`, path.posix.join(options.configFolder, 'shared', 'accept.js'), options.entry ] @@ -30,4 +30,4 @@ function entry(options) { } } -module.exports = entry \ No newline at end of file +module.exports = entry