Closed ex0ns closed 1 month ago
Thanks for the report. I'll close this in favor of an earlier issue this week https://github.com/getsentry/sentry-javascript-bundler-plugins/issues/614
oh i missed this one, found two other related issue, thanks for pointing it out.
Environment
@sentry/esbuild-plugin: 2.22.4 tsup: 8.3.0
Steps to Reproduce
Expected Result
Running the application with Sentry enabled.
Actual Result
Analysis
When looking at the file in the
dist
folder it is indeed starting with this strange import:Which lead me to this part of the plugin:
https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/75a5d1debb8793a572ab495361b613138b452bb2/packages/esbuild-plugin/src/index.ts#L45
But I have to say that I'm a bit confused about its purpose, and I can't find any documentation regarding this, I must do something wrong. I have create a repo to reproduce that: https://github.com/ex0ns/sentry-tsup (i uploaded the output in the
dist
folder).I could try to work on a fix or at least provide more information on this issue, but I don't know what would be the easiest way to test or at least debug that, any pointer welcome !
I think this is related to #608 #445