-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
perf(es/compat): Merge export_namespace_from to Transformer
#11309
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
Conversation
|
Code Review: PR #11309 - Merge
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR merges the export_namespace_from transformation into the main Transformer as part of the ES2020 compatibility layer, improving performance by integrating it directly rather than as a separate pass.
Key Changes:
- Introduced a new utility function
normalize_module_export_nameto handle module export name normalization with WTF-8 support - Added ES2020
export_namespace_fromoption and conditional hook implementation - Implemented transformation of
export * as name from 'source'syntax into separate import and re-export statements
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
crates/swc_ecma_transformer/src/utils/mod.rs |
New utility module with normalize_module_export_name function for handling module export names with WTF-8 encoding support |
crates/swc_ecma_transformer/src/lib.rs |
Added utils module declaration |
crates/swc_ecma_transformer/src/es2020/mod.rs |
Updated ES2020 options to include export_namespace_from flag and conditional hook implementation using OptionalHook |
crates/swc_ecma_transformer/src/es2020/export_namespace_from.rs |
New implementation of export namespace transformation that converts namespace exports into import/export pairs |
crates/swc_ecma_transformer/Cargo.toml |
Added swc_atoms dependency for atom manipulation in the new utility function |
Cargo.lock |
Updated lock file to reflect the new swc_atoms dependency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CodSpeed Performance ReportMerging #11309 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Pull Request Review: Merge
|
Code Review - PR #11309SummaryThis PR migrates the ✅ Positive Aspects
🔍 Issues & Recommendations1. Performance Issue: Capacity Allocation Discrepancy
|
Binary Sizes
Commit: c6964e7 |
Code Review for PR #11309: Merge
|
Code Review: PR #11309 - Merge
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 8 out of 9 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code Review: PR #11309 - Merge
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 8 out of 9 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Code Review: Performance Optimization - Merge
|
Pull Request Review: Merge
|

No description provided.