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

ref(component-annotate): Use default export #478

Closed 0Calories closed 9 months ago

0Calories commented 9 months ago

I know, default exports bad, but we don't have much of a choice here. Babel expects our plugin to be using a default export, or else it will not be able to resolve the plugin when using its string identifier in the config (@sentry/babel-plugin-component-annotate)

See this in Babel's source for reference: https://github.com/babel/babel/blob/main/packages/babel-core/src/config/config-descriptors.ts#L335

0Calories commented 9 months ago

Good idea, added a comment 👍