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

fix identifiers renaming #74

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

patricklx
Copy link

fixes #71

@patricklx patricklx changed the title fix renaming fix identifiers renaming Mar 7, 2024
@patricklx patricklx changed the base branch from main to update-swc March 7, 2024 14:05
@NullVoxPopuli NullVoxPopuli merged commit 3c83f34 into embroider-build:update-swc Mar 7, 2024
1 check passed
let found_id = find_existing_import(&parsed_module, target_module, target_specifier);
let had_id_already = found_id.is_some();
let id = found_id.unwrap_or_else(|| private_ident!(target_specifier));
let mut new_specifier = String::from(target_specifier);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic for this can go inside the closure for .unwrap_or_else so we don’t run it unnecessarily (and we probably don’t need private_ident! anymore)

@NullVoxPopuli NullVoxPopuli added the bug Something isn't working label Jul 1, 2024
@NullVoxPopuli NullVoxPopuli mentioned this pull request Oct 22, 2024
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.

bad transform of fake this param
3 participants