We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I'm bundling a single js file, app.js with a sourcemap app.js.map, this sourcemap references source files by absolute paths with file:///
app.js
app.js.map
file:///
{ "version":3, "file":"app.js", "sourceRoot":"", "sources":[ "file:////Users/geo/Projects/example/src/DomUI.hx",
When bundling with --sourcemap
--sourcemap
esbuild bin/app.js --bundle --outfile=bin/bundle.js --sourcemap
The sorucemap sources are included but lose the full file:/// protocol, so the browser complains about missing source files
bundle.js.map
{ "version": 3, "sources": [ "file:/Users/geo/Projects/lush-energies/src/DomUI.hx",
If I manually replace with file:///Users/... then everything works :)
file:///Users/...
I'd guess the issue is on this line
esbuild/internal/bundler/linker.go
Line 5412 in 41b49f6
When I get a moment out of crunch (could be a while) I'll try to get a Go environment going so I can explore this one
Using:
The text was updated successfully, but these errors were encountered:
I’m guessing that currently esbuild treats these as file paths, not URLs. In which case you could try removing the file:// at the front.
file://
Sorry, something went wrong.
https://
fix #1745, fix #3183: sources are URLs, not paths
131d9b6
f906a52
No branches or pull requests
I'm bundling a single js file,
app.js
with a sourcemapapp.js.map
, this sourcemap references source files by absolute paths withfile:///
When bundling with
--sourcemap
The sorucemap sources are included but lose the full
file:///
protocol, so the browser complains about missing source filesbundle.js.map
If I manually replace with
file:///Users/...
then everything works :)I'd guess the issue is on this line
esbuild/internal/bundler/linker.go
Line 5412 in 41b49f6
When I get a moment out of crunch (could be a while) I'll try to get a Go environment going so I can explore this one
Using:
The text was updated successfully, but these errors were encountered: