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] skip module should optimize in a named export order #1567

Open
stormslowly opened this issue Sep 5, 2024 · 1 comment
Open

[bug] skip module should optimize in a named export order #1567

stormslowly opened this issue Sep 5, 2024 · 1 comment

Comments

@stormslowly
Copy link
Member

stormslowly commented Sep 5, 2024

problem

// utils.js
export * from "lodash-es" // lodash has a template export

export { template } from "./foo" 

in index.js

import { template } from "./utils.js"

expect: template should use later export in foo
actuall: the template comes from lodash-es

@stormslowly stormslowly changed the title [bug] skip module should optimize in reverse order [bug] skip module should optimize in a named export order Sep 6, 2024
@stormslowly
Copy link
Member Author

the skip module is optimize order should be

  1. find explicit named export
  2. try all export * from in code reverse order

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