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

babel-plugin-minify-mangle-names doesn't rename calls in JSX expressions after mangling the variable name #1040

Open
Ibrahimrahhal opened this issue Oct 27, 2022 · 0 comments

Comments

@Ibrahimrahhal
Copy link

Describe the bug

When I try to transform a code using this plugin, it mangles the name correctly and replaces all the mangled variable calls with the new naming except for JSX expressions.

To Reproduce

Minimal code to reproduce the bug

Import Flex from 'some-library';

const Component = () => <Flex>Something</Flex>

Actual Output

If there is no Error thrown,

Import i from 'some-library';

const s = () => <Flex>Something</Flex>

Expected Output

 Import I from 'some-library';

const j = () => <I>Something</I>
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

No branches or pull requests

1 participant