From cc7655542139e54fa8a2ed5a2edf1dde3e986175 Mon Sep 17 00:00:00 2001 From: ZainChen Date: Mon, 15 Jan 2024 02:56:33 +0800 Subject: [PATCH] fix: hmr error (#833) * fix: hmr error * Create bright-peaches-wink.md --------- Co-authored-by: Jack Steam --- .changeset/bright-peaches-wink.md | 5 +++++ packages/vite-plugin/src/node/plugin-hmr.ts | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changeset/bright-peaches-wink.md diff --git a/.changeset/bright-peaches-wink.md b/.changeset/bright-peaches-wink.md new file mode 100644 index 000000000..f9b01d46f --- /dev/null +++ b/.changeset/bright-peaches-wink.md @@ -0,0 +1,5 @@ +--- +"@crxjs/vite-plugin": patch +--- + +fix: hmr error diff --git a/packages/vite-plugin/src/node/plugin-hmr.ts b/packages/vite-plugin/src/node/plugin-hmr.ts index e7603dc58..8f134624f 100644 --- a/packages/vite-plugin/src/node/plugin-hmr.ts +++ b/packages/vite-plugin/src/node/plugin-hmr.ts @@ -101,7 +101,6 @@ export const pluginHMR: CrxPluginFn = () => { ) { debug('sending runtime reload') server.ws.send(crxRuntimeReload) - return [] } }