Skip to content

Commit

Permalink
fix: ssrLoadModule importee
Browse files Browse the repository at this point in the history
  • Loading branch information
sun0day committed Mar 29, 2023
1 parent 90342d3 commit a17cf21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/vite/src/node/ssr/ssrModuleLoader.ts
Expand Up @@ -147,7 +147,10 @@ async function instantiateModule(
context,
urlStack,
fixStacktrace,
)
).catch((err) => {
err.importee = dep
throw err
})
if (pendingDeps.length === 1) {
pendingImports.delete(url)
} else {
Expand Down Expand Up @@ -222,7 +225,6 @@ async function instantiateModule(
},
)

delete e.importee
throw e
}

Expand Down

0 comments on commit a17cf21

Please sign in to comment.