Sourcemap files sometimes malformed, mostly empty (67 bytes) when using Bun.build
with sourcemap: 'external'
#11279
Labels
Bun.build
with sourcemap: 'external'
#11279
What version of Bun is running?
1.1.9+bb13798d9
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
Bun.build
and the following configuration object:outdir
(dist/
in this case). Notice how some.map
files are malformed and nearly empty. I'm seeing those files with filesize of 67 bytes.What is the expected behavior?
Sourcemap files should contain source code
What do you see instead?
Malformed JSON at the start of the file. For example, here are the contents from a sourcemap from a route handler (67 bytes):
Note
All the 67 byte files are malformed the same way and have these keys and shape. They look identical except for the
debugId
value.Additional information
Here is the full output from a build run so you can see all the different files, types, and sizes (notice multiple 67 byte sourcemap files):
Rightmost column legend:
[C]
for chunk[E]
for entry point[S]
for sourcemapFYI the 144 byte sourcemap isn't malformed but contains no useful sourcemap info:
The 872 byte sourcemap contains malformed text:
The 11.13 KiB sourcemap contains the same source code twice:
Note
The
aws4fetch
sourcemap appears to be the only one without any issues (1 out of 9).The text was updated successfully, but these errors were encountered: