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: some exports missed while export * in a deps #1616

Open
stormslowly opened this issue Sep 26, 2024 · 0 comments
Open

bug: some exports missed while export * in a deps #1616

stormslowly opened this issue Sep 26, 2024 · 0 comments
Assignees

Comments

@stormslowly
Copy link
Member

stormslowly commented Sep 26, 2024

problem

image

https://github.com/umijs/mako/blob/2b4b35cfd22d8ee72881b0a813491868b3625378/e2e/fixtures/module.loop_dep_with_export_star_all_esm/index.js#L2C13-L2C33

this case will failed, but webpack works

when code executed to step 3 in b.js, it exports * from "loop.index", at this moment, loop.index's export does not have a export of c, so in b's export there will be no c export.

solution

we should use exported info to predefine the ref link of exports * of deps, like a placeholder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant