Skip to content

Commit

Permalink
fix: woker don't need to inject umi.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed May 9, 2024
1 parent b328a78 commit 33331e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/server/src/ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ export default function createRequestHandler(
const stream = await ReactDomServer.renderToReadableStream(
React.createElement(JSXProvider, undefined, jsx.element),
{
bootstrapScripts: [jsx.manifest.assets['umi.js'] || '/umi.js'],
// why not bootstrap umi.js
// ER will auto inject
// bootstrapScripts: [jsx.manifest.assets['umi.js'] || '/umi.js'],
onError(x: any) {
console.error(x);
},
Expand Down

0 comments on commit 33331e3

Please sign in to comment.