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

Warn on same export #722

Closed
TrySound opened this issue Jun 16, 2016 · 2 comments
Closed

Warn on same export #722

TrySound opened this issue Jun 16, 2016 · 2 comments

Comments

@TrySound
Copy link
Member

TrySound commented Jun 16, 2016

Would be great to warn if there is same exports in module. This example is not explicit and could be dangerous.

// mod1
export const param = 0;
// mod2
export const param = 1;
// mod3
export * from './mod1';
export * from './mod2';
@eventualbuddha
Copy link
Contributor

To be clear, this is allowed by the spec and has well-defined semantics. However, you're right that if could indicate a bug. Warning sounds reasonable.

@Rich-Harris
Copy link
Contributor

Released as 0.33

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

No branches or pull requests

3 participants