Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ScriptedAlchemy opened this issue Feb 28, 2025 · 1 comment · Fixed by #9521
Closed

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

ScriptedAlchemy opened this issue Feb 28, 2025 · 1 comment · Fixed by #9521
Assignees

Comments

@ScriptedAlchemy
Copy link
Contributor

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

@ScriptedAlchemy ScriptedAlchemy added the pending triage The issue/PR is currently untouched. label Feb 28, 2025
@chenjiahan chenjiahan removed the pending triage The issue/PR is currently untouched. label Mar 6, 2025
@ahabhgk
Copy link
Contributor

ahabhgk commented Mar 10, 2025

Fixed by #9521

@ahabhgk ahabhgk closed this as completed Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants