Skip to content

Issue with Node/Edge files - export conditions #285

@vicb

Description

@vicb

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

Related PRs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions