Skip to content

Invariant Failed - Sourcemaps #1402

@GianlucaGuarini

Description

@GianlucaGuarini

Hi there,
I am getting a recast error into the Riot.js compiler similar to this old one

I could reproduce it with this example:
https://runkit.com/gianlucaguarini/recast-bug-2

It seems that the sourcemaps generation fails in some cases when the code gets wrapped into round brackets.

Any help is really appreciated, thank you!

Metadata

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