Skip to content

Commit

Permalink
fix(prerender): export Fragment for prerender builds
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Sep 1, 2020
1 parent 195538e commit 142adc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hydrate/platform/index.ts
Expand Up @@ -111,7 +111,8 @@ const hostRefs: WeakMap<d.RuntimeRef, d.HostRef> = new WeakMap();

export const getHostRef = (ref: d.RuntimeRef) => hostRefs.get(ref);

export const registerInstance = (lazyInstance: any, hostRef: d.HostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
export const registerInstance = (lazyInstance: any, hostRef: d.HostRef) =>
hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);

export const registerHost = (elm: d.HostElement, cmpMeta: d.ComponentRuntimeMeta) => {
const hostRef: d.HostRef = {
Expand Down Expand Up @@ -159,6 +160,7 @@ export {
getElement,
getValue,
setValue,
Fragment,
Host,
insertVdomAnnotations,
parsePropertyValue,
Expand Down

0 comments on commit 142adc8

Please sign in to comment.