Skip to content

fix(registry): restore static require for browsers.json (#41248)#41274

Open
Git-Raini wants to merge 1 commit into
microsoft:mainfrom
Git-Raini:fix/41248-static-browsers-json
Open

fix(registry): restore static require for browsers.json (#41248)#41274
Git-Raini wants to merge 1 commit into
microsoft:mainfrom
Git-Raini:fix/41248-static-browsers-json

Conversation

@Git-Raini

Copy link
Copy Markdown

Static analysis tools such as Next.js standalone output and @vercel/nft cannot follow require(path.join(packageRoot, 'browsers.json')), which causes browsers.json to be omitted from bundled deployments.

Restore the v1.59.1 static require path so bundlers can include browsers.json reliably while preserving runtime behavior.

Fixes #41248

)

Static analysis tools such as Next.js standalone output and @vercel/nft
cannot follow require(path.join(packageRoot, 'browsers.json')), which
causes browsers.json to be omitted from bundled deployments.

Restore the v1.59.1 static require path so bundlers can include
browsers.json reliably while preserving runtime behavior.

Fixes microsoft#41248
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.

[Bug]: browsers.json is loaded via dynamic require since v1.60.0, breaking static file tracing (Next.js standalone / @vercel/nft)

1 participant