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

Module executed by re-exports #1

Open
nicolo-ribaudo opened this issue Apr 16, 2023 · 0 comments
Open

Module executed by re-exports #1

nicolo-ribaudo opened this issue Apr 16, 2023 · 0 comments

Comments

@nicolo-ribaudo
Copy link
Owner

// a.js
console.log("a");
export const a = 1;
// b.js
console.log("b");
export const b = 1;
// c.js
export { a } from "./a.js";
export { b } from "./b.js";
console.log("c");
// main.js
import defer * as ns from "./c.js";
ns.a;

When evaluating main.js, should this code log a b c or just a?

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