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

Fixed incorrect output if rename while re-exporting the default export without a name #248

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

timocov
Copy link
Owner

@timocov timocov commented Mar 30, 2023

Fixes #185

For any unnamed statement the tool will generate a name __DTS_BUNDLE_GENERATOR__GENERATED_NAME${number within a compilation} (e.g. __DTS_BUNDLE_GENERATOR__GENERATED_NAME$3) and then use that name to re-export with exported name via export { name as name } syntax, e.g. export { __DTS_BUNDLE_GENERATOR__GENERATED_NAME$3 as myName }.

See test cases for more examples.

@timocov timocov merged commit 213998d into master Mar 30, 2023
@timocov timocov deleted the issue185 branch March 30, 2023 22:12
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

Successfully merging this pull request may close these issues.

Incorrect output if rename while re-exporting the default export without a name
1 participant