Skip to content

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

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

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

Conversation

@chargome

Copy link
Copy Markdown
Member

leftover from #20527

@chargomechargome self-assigned this Apr 28, 2026
@@ -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
MemberAuthor

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 developApr 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 freeto 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

@chargome@mydea@nicohrubec