Skip to content

[Bug]: Source map source content is a transformed code when { map: null } #3092

@hi-ogawa

Description

@hi-ogawa

Reproduction link or steps

Here console.log("injected!!") is an injected code by transform hook, but it appears in source content.

Image

What is expected?

Like rollup

Image

What is actually happening?

wrong source content

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    rolldown: 0.15.0-snapshot-de64ad9-20241209003633 => 0.15.0-snapshot-de64ad9-20241209003633

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions