Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcemaps are not accessible via karma server #46

Open
thatsmydoing opened this issue Feb 22, 2022 · 1 comment
Open

Sourcemaps are not accessible via karma server #46

thatsmydoing opened this issue Feb 22, 2022 · 1 comment

Comments

@thatsmydoing
Copy link

Trying to access the sourcemap from the karma server fails with a 404

It seems the esbuild config needs to have

publicPath: '/base'

to deal with the prefix that karma puts everything under. This makes the sourceMappingURL injected into the bundle correct.

In addition to that, the bundlerMap stores file names with their absolute path but the esbuild middleware looks it up using a relative path so it can never find the sourcemap.

@marvinhagemeister
Copy link
Owner

Thanks for reporting this issue and the debugging hints. I've come across that one myself and attempted a fix in #37 , but haven't had the time so far to get that PR ready. Would love some help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants