0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-25 00:51:01 +01:00
svelte/.changeset/wet-timers-shop.md
Simon H 1434f48f7c
fix: make compiler error extend from Error (#14036)
We originally didn't extend from `Error` anymore because its fields are of no real value to us, and has problems with serialization in a worker context.

Turns out this was a mistake, because various build tools rely on errors being thrown as something that extends Error, else they try to wrap it in their own error.

We therefore revert that change while still trying to preserve most of the advantages of not extending `Error`, namely nuking the useless stack trace and making sure the message is enumerable.
2024-10-30 15:33:15 +01:00

70 B

svelte
patch

fix: make compiler error extend from Error