Skip to content

[Feature]: Remove Rspack runtime from CommonJS output files #1060

Description

@sanfengliao

What problem does this feature solve?

Currently, each file in the CommonJS format output contains Rspack's runtime code. Is it possible to remove the Rspack runtime and only use require() to import other modules

What does the proposed API look like?

Generate clean CommonJS files that only use standard require() statements to import dependencies, without embedding Rspack runtime in each file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RspackRspack related issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions