Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

the output sourcemap has less mappings than rollup when the plugin returns a line-only sourcemap #428

Description

@bpuns

Related plugins

Describe the bug

The sourcemap mapping in "rolldown-vite" is incorrect.

Reproduction

https://stackblitz.com/edit/vitejs-vite-g3z3jjxr?file=package.json,src%2Fmain.js,src%2Findex.jsx,vite.config.js&terminal=dev

Steps to reproduce

No response

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 20.34 GB / 39.81 GB
  Binaries:
    Node: 22.18.0 - ~\AppData\Local\fnm_multishells\32752_1758517990736\node.EXE
    npm: 10.9.3 - ~\AppData\Local\fnm_multishells\32752_1758517990736\npm.CMD
    pnpm: 10.4.1 - ~\AppData\Local\fnm_multishells\32752_1758517990736\pnpm.CMD
  Browsers:
    Edge: Chromium (140.0.3485.66)

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: upstreamBug in a dependency of Vite

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions