Skip to content

Conversation

@lforst
Copy link

@lforst lforst commented Apr 12, 2023

No description provided.

@lforst lforst marked this pull request as ready for review April 13, 2023 07:51
@lforst lforst mentioned this pull request Apr 13, 2023
if (unpluginMetaContext.framework === "esbuild") {
if (internalOptions._experiments.debugIdUpload) {
plugins.push({
name: "sentry-debug-id-plugin",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we specifically highlight this is esbuild only?

Or we can also move the rest of the debug id logic into this plugin.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we specifically highlight this is esbuild only?

I don't think it is necessary to say it is explicitly for esbuild, since it will only be used in esbuild anyways, but this is such a little change I will just do it :p

Or we can also move the rest of the debug id logic into this plugin.

Unfortunately, this is a bit of a limitation/bug with unplugin itself. You cannot define hooks + a config field in the same plugin, so we need to emit two. If you define hooks + config, the hooks will not run.

@lforst lforst enabled auto-merge (squash) April 13, 2023 09:46
@lforst lforst merged commit 7ffe4a0 into main Apr 13, 2023
@lforst lforst deleted the lforst-esbuild-debugid branch April 13, 2023 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants