From 39ecdf25b7eb1c8ed5cc273c3aaebe3a3826f9c7 Mon Sep 17 00:00:00 2001 From: Hikari Hayashi Date: Wed, 28 Dec 2022 14:05:06 +0800 Subject: [PATCH] fix: perform a HMR update after inserting a new CSS module Fixes #706 --- src/loader.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/loader.js b/src/loader.js index b3006b4a3..0642864ee 100644 --- a/src/loader.js +++ b/src/loader.js @@ -60,6 +60,9 @@ function hotLoader(content, context) { })}); module.hot.dispose(cssReload); ${accept} + if (module.hot.status() !== "idle") { + cssReload(); + } } `; }