Skip to content

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

@Ibrahimrahhal

Description

@Ibrahimrahhal

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions