Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jan 22, 2024
1 parent 9882b62 commit e651e47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/waku/src/lib/plugins/vite-plugin-rsc-hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export function rscHmrPlugin(opts: { srcDir: string; mainJs: string }): Plugin {
transform(code, id, options) {
if (options?.ssr) return;
if (id === mainJsFile) {
// FIXME this is pretty fragile, should we patch react-dom/client?
return code.replace(
'hydrateRoot(document.body, rootElement);',
`
Expand Down

0 comments on commit e651e47

Please sign in to comment.