Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(vite-node): wrong entry been resolved in stub mode (#3983)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 31, 2022
1 parent 281784d commit 9c2e208
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vite/src/runtime/server.mjs
Expand Up @@ -50,6 +50,9 @@ async function writeManifest () {
let render

export default async (ssrContext) => {
// Workaround for stub mode
// https://github.com/nuxt/framework/pull/3983
process.server = true
render = render || (await runner.executeFile(entry)).default
const result = await render(ssrContext)
await writeManifest()
Expand Down

0 comments on commit 9c2e208

Please sign in to comment.