Skip to content

[Bug]: Metadata is not fully decorated #3728

@PointSingularity

Description

@PointSingularity

Reproduction link or steps

https://stackblitz.com/edit/github-n16h8yyc

Run npm i and npm run start to get the dist files.

What is expected?

Metadata should be fully decorated.

What is actually happening?

Rolldown does not decorate the metadata.

Image

As you can see, Rolldown is missing the design metadata on the classes.

OXC does not have the design:type, the design:paramtype check is different, and the _define_property inside constructor is missing when compared to the SWC output either (that might be a separate issue though).

System Info

System:
    OS: macOS 15.3.1
    CPU: (12) arm64 Apple M2 Pro
    Memory: 1.64 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.proto/shims/node
    Yarn: 4.6.0 - ~/.proto/shims/yarn
    npm: 10.9.2 - ~/.proto/shims/npm
    pnpm: 10.4.1 - ~/.proto/shims/pnpm
    bun: 1.2.2 - ~/.proto/shims/bun
  Browsers:
    Chrome: 133.0.6943.142
    Edge: 133.0.3065.92
    Safari: 18.3
  npmPackages:
    rolldown: latest => 1.0.0-beta.3-commit.3337767

Any additional comments?

Maybe I am not setting things up properly, but I tried using the newest packages, so let me know if I misconfigured something.

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions