errrr this seems to work?

pull/12542/head
Rich Harris 2 years ago
parent 8d0a6b471b
commit 7c2a038b42

@ -444,6 +444,7 @@ export function client_component(source, analysis, options) {
}
const hmr = b.block([
b.stmt(b.assignment('??=', b.id('import.meta.hot.data'), b.object([]))),
b.stmt(
b.assignment(
'??=',

@ -10,6 +10,7 @@ function Hmr($$anchor) {
}
if (import.meta.hot) {
import.meta.hot.data ??= {};
import.meta.hot.data.source ??= $.source(Hmr);
const $$filename = Hmr[$.FILENAME];

Loading…
Cancel
Save