Skip to content

Commit

Permalink
fix: perform a HMR update after inserting a new CSS module
Browse files Browse the repository at this point in the history
Fixes #706
  • Loading branch information
latin-1 committed Dec 28, 2022
1 parent b616093 commit 39ecdf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/loader.js
Expand Up @@ -60,6 +60,9 @@ function hotLoader(content, context) {
})});
module.hot.dispose(cssReload);
${accept}
if (module.hot.status() !== "idle") {
cssReload();
}
}
`;
}
Expand Down

0 comments on commit 39ecdf2

Please sign in to comment.