Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(esbuild): Add debug ID injection for esbuild #202

Merged
merged 3 commits into from
Apr 13, 2023

Conversation

lforst
Copy link
Member

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

2 participants