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

bugfix: remove export keyword for locally used declaration #12

Merged

Conversation

kazushisan
Copy link
Contributor

export const a = 'a';

export const b = 'b';

export const c = 'c';

console.log(b);

when c is the only used export within the project, the expected behavior is

const b = 'b';

export const c = 'c';

console.log(b);

however the current behavior is

export const b = 'b';

export const c = 'c';

console.log(b);

This PR will fix this bug to remove export keywords for locally used declarations.

@kazushisan kazushisan added the bug Something isn't working label Sep 10, 2024
@kazushisan kazushisan self-assigned this Sep 10, 2024
@kazushisan kazushisan merged commit 57318ee into main Sep 11, 2024
1 check passed
@kazushisan kazushisan deleted the fix/remove-export-keyword-for-localy-used-declaration branch September 11, 2024 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant