Skip to content

Nitro build does not add native externals that are required. #4093

@dake3601

Description

@dake3601

Environment

Node v24 and Nitro v3.0.1-alpha.2

Reproduction

Reproduction in test of linked PR.: https://github.com/dake3601/nitro-cjs-trace-repro

Describe the bug

Importing cjs package that requires a native external will not be in the bundled output.

Additional context

See #4094 for more info.

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions