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

Commit

Permalink
try behavior of legacy bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 16, 2022
1 parent 416f6e9 commit 808fd5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vite/src/runtime/vite-node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ const runner = new ViteNodeRunner({
if (!err.data || !err.data.data) {
throw err
}
return { code: '' }
// Keys: id, plugin, message, name, stack, loc, pluginCode, frame
const viteError = { ...err.data.data }
throw viteError
// const viteError = { ...err.data.data }
// throw viteError
})
}
})
Expand Down

0 comments on commit 808fd5b

Please sign in to comment.