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 have investigated a bit the issue and summarized everything in this post: getsentry/sentry-javascript-bundler-plugins#614 (comment). I would like to propose a solution but I'm looking for some pointer on where to start and what would be the recommended way of doing this.
What would be to correct approach to fix that for tsup ? I would try to stick as close as possible to the esbuild plugin but if not possible I could even rewrite the part of the plugins that do not behave correctly with tsup.
Thanks !
The text was updated successfully, but these errors were encountered:
Hello
I'm trying to get Sentry's esbuild plugin to work in my setup and I'm struggling to make this work with tsup.
My config is very simple
I have investigated a bit the issue and summarized everything in this post: getsentry/sentry-javascript-bundler-plugins#614 (comment). I would like to propose a solution but I'm looking for some pointer on where to start and what would be the recommended way of doing this.
My guess is that whenever this plugin's callback is called https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/bd3e31f598f5badaccf011f701d94bbb9e6b6b31/packages/esbuild-plugin/src/index.ts#L232 it then call the common (i.e plugin independent) core function of the plugin, which is looking for file on disk (https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/2.22.5/packages/bundler-plugin-core/src/debug-id-upload.ts#L93). However it seems that whenever we are running the esbuild plugin through tsup, those file are not written on disk yet, and the result of the
glob
function is always empty.What would be to correct approach to fix that for tsup ? I would try to stick as close as possible to the esbuild plugin but if not possible I could even rewrite the part of the plugins that do not behave correctly with tsup.
Thanks !
The text was updated successfully, but these errors were encountered: