Skip to content

mangleProps combined with decorator leads to internal error #3177

Closed
@MuTsunTsai

Description

Whenever I use TypeScript experimentalDecorators together with a property that I want to mangle, it shows and error like this:

error: panic: Internal error (while parsing "*****.ts")

Can't really reproduce it with esbuild-try as it doesn't support decorators, but the pattern of this is quite clear.

Activity

MuTsunTsai

MuTsunTsai commented on Jun 19, 2023

@MuTsunTsai
Author

Thanks for the fix. Hope to see it in the next release soon.

MuTsunTsai

MuTsunTsai commented on Jun 21, 2023

@MuTsunTsai
Author

Confirm issue fixed in v0.18.6.

added a commit that references this issue on Jan 27, 2024

fix evanw#3177: experimental decorators + mangle props

3af5d3b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      `mangleProps` combined with decorator leads to internal error · Issue #3177 · evanw/esbuild