unovis icon indicating copy to clipboard operation
unovis copied to clipboard

Support Sourcemaps for Dev

Open curran opened this issue 1 year ago • 1 comments

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:

image

Desired behavior: in npm run dev, the environment leverages sourcemaps to tell you where the error is coming from.

curran avatar Oct 08 '24 19:10 curran

But overall, the source maps don't seem to be working.

For example, when I add this change:

image

I get this error:

image

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.

curran avatar Oct 09 '24 15:10 curran