getsentry / sentry-javascript-bundler-plugins

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

feat: Export esbuild plugin as default #555

Closed lforst closed 5 months ago

lforst commented 5 months ago

Fixes https://github.com/getsentry/sentry-javascript-bundler-plugins/issues/554

We tell users in our docs for setting up the esbuild plugin with Angular and Nx to pass the plugin to the plugins array in the Nx config. However, Nx just takes the default export, or if non-existent, whatever is on module.exports, as the plugin.

If we export the plugin as default export the issue is fixed.