fastify-renderer
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -40,3 +40,3 @@ "use strict"; | ||
// we load all the context needed for this render from one `loadModule` call, which is really important for keeping the same copy of React around in all of the different bits that touch it. | ||
const { React, ReactDOMServer, Router, Layout, Entrypoint } = await this.loadModule(this.buildServerEntrypointModuleURL(render.renderable)); | ||
const { React, ReactDOMServer, Router, Layout, Entrypoint } = (await this.loadModule(this.buildServerEntrypointModuleURL(render.renderable))).default; | ||
let app = (React.createElement(RenderBus_1.RenderBus.Context.Provider, { value: bus }, | ||
@@ -43,0 +43,0 @@ React.createElement(Router, { base: this.plugin.base, hook: static_location_1.default(this.stripBasePath(render.request.url)) }, |
{ | ||
"name": "fastify-renderer", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "Simple, high performance client side app renderer for Fastify.", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
202757