Skip to content

Commit 038b762

Browse files
committed
oops
1 parent 849f5c4 commit 038b762

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/examples/react-static/components/client.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,9 @@ document.addEventListener('click', e => {
6565
window.addEventListener('popstate', e => {
6666
navigate(location.pathname);
6767
});
68+
69+
// Intercept HMR window reloads, and do it with RSC instead.
70+
window.addEventListener('parcelhmrreload', e => {
71+
e.preventDefault();
72+
navigate(location.pathname);
73+
});

packages/runtimes/rsc/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"url": "https://github.com/parcel-bundler/parcel.git"
1515
},
1616
"main": "lib/RSCRuntime.js",
17-
"source": "src/RSCRuntime.js",
1817
"exports": {
1918
".": {
2019
"react-server": "./resources.js",

0 commit comments

Comments
 (0)