Skip to content

Commit

Permalink
Include systemjs entry for legacy builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed Nov 5, 2024
1 parent c421ad9 commit 796cb50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/preact-browser/source/server/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,14 @@ async function renderHTMLChunk(
}

const entryAssets = assets.entry({request: browser.request});
const systemJSAssets = assets.entry({
id: 'system.js',
request: browser.request,
});

replacement = renderToString(
<>
<ScriptAssets scripts={systemJSAssets.scripts} />
<ScriptAssets scripts={entryAssets.scripts} />
<StyleAssets styles={entryAssets.styles} />
</>,
Expand Down

0 comments on commit 796cb50

Please sign in to comment.