preactjs / preset-vite

Preset for using Preact with the vite bundler
https://npm.im/@preact/preset-vite
MIT License
259 stars 26 forks source link

Feature: Return code frames from source maps for prerender errors #106

Closed rschristian closed 6 months ago

rschristian commented 7 months ago

The prerender errors are quite difficult to decipher and unfortunately catching the prerender errors removes all position info.

Better to enable source maps and generate proper code frames from them upon error, similar to what we did in Preact-CLI (and perhaps WMR, but my memory fails me).

Will look into in the next week, probably.