Skip to content

feat: support reexport for cjs-esm interop  #4325

@ahabhgk

Description

@ahabhgk

for now we use a runtime code: __webpack_require__.es to support it, it's aligned with babel's behavior (non-strict esm), but we haven't support node's behavior (strict esm)

related code: https://github.com/webpack/webpack/blob/87660921808566ef3b8796f8df61bd79fc026108/lib/dependencies/HarmonyExportImportedSpecifierDependency.js#L937

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleteamThe issue/pr is created by the member of Rspack.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions