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.
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.