Skip to content

Commit

Permalink
chore: always mark evaluated
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 28, 2022
1 parent a9ab9df commit 59312ef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/vite-node/src/client.ts
Expand Up @@ -347,9 +347,12 @@ export class ViteNodeRunner {
columnOffset: -codeDefinition.length,
})

await fn(...Object.values(context))

mod.evaluated = true
try {
await fn(...Object.values(context))
}
finally {
mod.evaluated = true
}

return exports
}
Expand Down

0 comments on commit 59312ef

Please sign in to comment.