Skip to content

feat(nextjs): Set global attribute for turbopack usage#20558

Merged
chargome merged 1 commit intodevelopfrom
cg/turbopack-global-scope-attribute
Apr 29, 2026
Merged

feat(nextjs): Set global attribute for turbopack usage#20558
chargome merged 1 commit intodevelopfrom
cg/turbopack-global-scope-attribute

Conversation

@chargome
Copy link
Copy Markdown
Member

leftover from #20527

@chargome chargome self-assigned this Apr 28, 2026
@chargome chargome requested a review from nicohrubec April 28, 2026 11:24
@@ -284,6 +365,7 @@ export function init(options: NodeOptions): NodeClient | undefined {
// @ts-expect-error `process.turbopack` is a magic string that will be replaced by Next.js
if (process.turbopack) {
getGlobalScope().setTag('turbopack', true);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

l: Do we need the tag here? can we remove this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

otherwise we lose this data on errors atm

@chargome chargome merged commit 76d60a0 into develop Apr 29, 2026
74 of 77 checks passed
@chargome chargome deleted the cg/turbopack-global-scope-attribute branch April 29, 2026 07:37
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