getsentry / sentry-javascript-bundler-plugins

JavaScript Bundler Plugins for Sentry
https://sentry.io
BSD 3-Clause "New" or "Revised" License
138 stars 36 forks source link

tsup plugin #608

Open segevfiner opened 1 month ago

segevfiner commented 1 month ago

tsup runs additional steps besides just running esbuild, so the esbuild plugin doesn't work. It would be nice to have a plugin for tsup.

chargome commented 1 month ago

hey @segevfiner, thanks for reaching out. Could you specify what exactly is not working, maybe we could adapt the existing esbuild plugin instead of creating a new one?

segevfiner commented 1 month ago

It's not finding the sources or source maps. Presumably as tsup runs esbuild using its API and doesn't directly let esbuild write the output, but post processes it by itself before it lands in the outoput folder.

chargome commented 1 month ago

Alright, we'll have a look 👍