Skip to content

[Feature]: Add option to automatically externalize dependencies (similar to Rslib’s autoExternal) #5967

@Karibash

Description

@Karibash

What problem does this feature solve?

Currently, all dependencies are bundled by default. However, some packages break when they are bundled in Node.js applications. For example, Sentry and OpenTelemetry auto-instrumentation rely on being loaded as external dependencies and will not function correctly if bundled.
To address this, we need an option to automatically externalize dependencies instead of bundling them.

What does the proposed API look like?

Introduce an option similar to Rslib’s autoExternal, which automatically marks dependencies as external and excludes them from the bundle.
This would allow developers to build Node.js applications without unintentionally breaking packages that require being externalized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions