bun icon indicating copy to clipboard operation
bun copied to clipboard

Sourcemaps should contain `sourceMappingURL`

Open vjpr opened this issue 1 year ago • 3 comments

What version of Bun is running?

0.6.10

What platform is your computer?

macos

What steps can reproduce the bug?

Currently no source maps are working when using sourcemaps: 'external'. sourceMappingURL is not appended.

It also breaks stacktrace-gps package which requires this.

Confirm via Developer Resources in DevTools: https://developer.chrome.com/docs/devtools/developer-resources/

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

vjpr avatar Jun 15 '23 10:06 vjpr

sourcemap=inline seems to be doing nothing as well (doesn't append the base64 comment to the file)

PfisterFactor avatar Oct 22 '23 14:10 PfisterFactor

I've run into this bug too. Source maps don't seem to be working at all no matter what I try. I'm on macOS, x86, and Bun v1.0.7.

mangs avatar Oct 27 '23 20:10 mangs

same issue here - it seems also doubles the entires in map while external option

{ "version": 3, "sources": ["../src/main.ts", "../src/main.ts"], "sourcesContent": [

spamshaker avatar Apr 07 '24 20:04 spamshaker