You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the "stimulus_ns" entry in my generated source map had the absolute path of the Stimulus controllers folder. This meant on production I was leaking information about the directory structure of my server e.g.
Thanks for the feedback. I'd have to look at what esbuild uses for its sourcemap paths to recommend a resolution here. Anchoring relative to the esbuild process's working directory seems reasonable, but I would want to ensure that this doesn't have any strange side-effects.
Hello
Thanks for the great plugin
I noticed the "stimulus_ns" entry in my generated source map had the absolute path of the Stimulus controllers folder. This meant on production I was leaking information about the directory structure of my server e.g.
My workaround:
I replaced the returned path in
build.onResolve
withand the
resolveDir
inbuild.onLoad
withHope that helps, not sure if it's the correct approach or desirable as a PR.
The text was updated successfully, but these errors were encountered: