Skip to content

Commit

Permalink
fix(build): fix resolution algorithm when build.ssr is true (vitejs…
Browse files Browse the repository at this point in the history
  • Loading branch information
cuuc20072008 committed Oct 11, 2022
1 parent 94abccc commit 97d5a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/css.ts
Expand Up @@ -381,7 +381,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
const cssContent = await getContentWithSourcemap(css)
const devBase = config.base
const code = [
`import { updateStyle as __vite__updateStyle, removeStyle as __vite__removeStyle } from ${JSON.stringify(
`import { updateStyle as __vite__updateStyle, removeStyle as __vite__removeStyle, use, unuse } from ${JSON.stringify(
path.posix.join(devBase, CLIENT_PUBLIC_PATH)
)}`,
`const __vite__id = ${JSON.stringify(id)}`,
Expand Down

0 comments on commit 97d5a7a

Please sign in to comment.