Skip to content

Commit

Permalink
fix: chunkMap.css error
Browse files Browse the repository at this point in the history
  • Loading branch information
GiveMe-A-Name committed Dec 19, 2023
1 parent 30fd49c commit 03e4547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime/plugin-runtime/src/ssr/serverRender/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

import { isReact18 } from '../utils';
import { ServerRenderOptions } from './types';
import { CHUNK_JS_PLACEHOLDER } from './constants';
import { CHUNK_CSS_PLACEHOLDER } from './constants';

export default async function serverRender(options: ServerRenderOptions) {
if (options.context.ssrContext?.template) {
options.context.ssrContext.template =
options.context.ssrContext?.template.replace(
'</head>',
`${CHUNK_JS_PLACEHOLDER}</head>`,
`${CHUNK_CSS_PLACEHOLDER}</head>`,
);
}

Expand Down

0 comments on commit 03e4547

Please sign in to comment.