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

Namespace stripped from sourcemap sources in v0.25.0 #4078

Open
bep opened this issue Feb 13, 2025 · 0 comments
Open

Namespace stripped from sourcemap sources in v0.25.0 #4078

bep opened this issue Feb 13, 2025 · 0 comments

Comments

@bep
Copy link

bep commented Feb 13, 2025

In Hugo we have some custom import resolvers similar to:

build.OnResolve(api.OnResolveOptions{Filter: `.*`},
build.OnLoad(api.OnLoadOptions{Filter: `.*`, Namespace: "mynamespace"},

With the above, there's no way for esbuild to build the correct source maps without additional information, so we adjust the sourcemaps generated by esbuild by looking at the namespace prefix. This worked great in v0.24.0.

In v0.25.0, without that prefix, we have no (simple) way of knowing where to look.

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

1 participant