-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[mangle] exporting from along with importing the same variable name doesn't work #2924
Comments
This also sometimes occurs when transforming and not mangling. It's a problem in the resolver code. |
kdy1
added a commit
to kdy1/swc
that referenced
this issue
Dec 29, 2021
kdy1
added a commit
to kdy1/swc
that referenced
this issue
Dec 29, 2021
kdy1
added a commit
that referenced
this issue
Dec 29, 2021
swc_ecma_transforms_base: - `resolver`: Ignore named export with source. - `hygiene`: Ignore named export with source. (Closes #2924, Closes #3114) swc_ecma_minifier: - Handle `export default` declarations as declaration instead of expressions. (Closes #2717) - Don't override already-processed identifiers. (Closes #2988) swc_bundler: - Adjust the syntax context for named re-exports.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
just run the code
Input code
Output
Playground link
Playground
Expected behavior
exported value should keep proper name
Version
1.2.114
Additional context
No response
The text was updated successfully, but these errors were encountered: