Closed mgutz closed 3 years ago
Thank you for reporting this issue. svite already had an onwarn handler for rollup-plugin-svelte, unfortunately that was never called for compiler errors.
This has been added in 0.3.1. Output looks like this:
[svite] /src/App.svelte(12:78) Expected >
10:
11: <h1>Hello {world}</h1>
12: <p>Open App.svelte in your editor and change something to see HMR in action</p
^
Describe the feature
Error details are currently suppressed. Logged errors should print compiler error details.
Unsure if this issue should be fixed here, in
rollup-plugin-svelte-hot
or in vite itself.A Usecase
Errors are almost useless right now. For example, if a closing angle bracket is left out, the error logged is
There is no detail about the source causing the issue. If I patch rollup-plugin-svelte-hot in node_modules to display the actual error, the error is useful
The source location and frame details the cause.