Skip to content

Commit

Permalink
fix: ssr-manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
poyoho committed May 28, 2022
1 parent c5185cf commit 9aa12b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/ssrManifestPlugin.ts
Expand Up @@ -59,7 +59,7 @@ export function ssrManifestPlugin(config: ResolvedConfig): Plugin {
const chunk = bundle[filename] as OutputChunk | undefined
if (chunk) {
chunk.viteMetadata.importedCss.forEach((file) => {
deps.push(`/${file}`)
deps.push(join(config.base, file))
})
chunk.imports.forEach(addDeps)
}
Expand Down
1 change: 1 addition & 0 deletions playground/ssr-vue/vite.config.js
Expand Up @@ -9,6 +9,7 @@ const nestedVirtualId = '\0' + nestedVirtualFile
* @type {import('vite').UserConfig}
*/
module.exports = {
base: '/test/',
plugins: [
vuePlugin(),
vueJsx(),
Expand Down

0 comments on commit 9aa12b3

Please sign in to comment.