From 8c30740442d777a6d39a08d6c35fc7801c9b3827 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Tue, 5 Oct 2021 16:57:51 -0400 Subject: [PATCH] Add hydration to Solid renderer (#1479) (#1495) * feat: add hydration to Solid renderer * fix: intersection observer, move script to the end Co-authored-by: Ryan Carniato --- packages/renderers/renderer-solid/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/renderers/renderer-solid/index.js b/packages/renderers/renderer-solid/index.js index a7ccae817..5cd31f450 100644 --- a/packages/renderers/renderer-solid/index.js +++ b/packages/renderers/renderer-solid/index.js @@ -4,6 +4,7 @@ export default { server: './server', external: ['solid-js/web/dist/server.js', 'solid-js/store/dist/server.js', 'solid-js/dist/server.js', 'babel-preset-solid'], knownEntrypoints: ['solid-js', 'solid-js/web', 'solid-js/store', 'solid-js/html', 'solid-js/h'], + external: ['solid-js/web/dist/server.cjs', 'solid-js/store/dist/server.cjs', 'solid-js/dist/server.cjs', 'babel-preset-solid'], jsxImportSource: 'solid-js', jsxTransformOptions: async ({ isSSR }) => { const [{ default: solid }] = await Promise.all([import('babel-preset-solid')]);