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