8000 Incorrect combined sourcemaps for `if` block close token · Issue #5961 · rollup/rollup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Incorrect combined sourcemaps for if block close token #5961

Open
@sapphi-red

Description

@sapphi-red

Rollup Version

4.41.0

Operating System (or Browser)

Browser

Node Version (if applicable)

No response

Link To Reproduction

https://stackblitz.com/edit/rollup-repro-2uwvqcc5?file=rollup.config.js,src%2Fmain.tsx

Expected Behaviour

Image
The output sourcemap contains a mapping from the closing } for if block to the original code.
(the plugin using esbuild is passing the sourcemap with that mapping).

Actual Behaviour

Image
The mapping does not exist.

Maybe related to #5955

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0