Skip to content

[Bug]: Module Federation ESM output attempts to import virtual chunk ids #9507

Closed
@ScriptedAlchemy

Description

@ScriptedAlchemy

System Info

Macos
Latest rspack

Details

In ESM output mode, rspack chunks attempt to import * from [virtual chunk id] - these files do not exist on disk and are virtual ids that are in a Map object - these should not be hard coded into the output, but should just require.f or require.X so that require.ensure chunk handlers are called with these specific chunk ids.

Image

Reproduce link

module-federation/module-federation-examples#4342

Reproduce Steps

run dev on project then browse to the remote project

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions