unovis
unovis copied to clipboard
Support Sourcemaps for Dev
As a newcomer to the Unovis codebase, I want to be able to know the file and line number from which an error originated, so that I can figure out the cause.
Current behavior: in npm run dev, there seems to be no sourcemaps configured, so when an error occurs, it resolves to bundle.js, which is useless. Example:
Desired behavior: in npm run dev, the environment leverages sourcemaps to tell you where the error is coming from.
But overall, the source maps don't seem to be working.
For example, when I add this change:
I get this error:
The source maps don't seem to be doing their job. Instead of bundle.js it should resolve to the specific line number and source file, but it does not.