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

Issue with Node/Edge files - export conditions #285

Open
vicb opened this issue Jan 27, 2025 · 0 comments
Open

Issue with Node/Edge files - export conditions #285

vicb opened this issue Jan 27, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@vicb
Copy link
Contributor

vicb commented Jan 27, 2025

We have issues when sometimes the bundle include Node files where Edge/Browser files would be better suited for workerd.

A few examples of this:

My current understanding of the issue is that Next traces Node files but not edge/browser files.

We should check if there is way to trace edge/browser filesμ. This seems to be supported by nft but not sure if Next exposes this options. We might need to submit to PR to Next.

Ref: ESBuild docs about conditions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant