Skip to content

transformer: declare class incorrectly preserved as runtime class #3993

@yyx990803

Description

@yyx990803

Encountered this when bundling Vue via Rolldown.

In

declare const ReactiveMarkerSymbol: unique symbol

export declare class ReactiveMarker {
  private [ReactiveMarkerSymbol]?: void
}

Out

class ReactiveMarker {
  [ReactiveMarkerSymbol];
}

Expected

// should be removed entirely

Metadata

Metadata

Assignees

Labels

A-transformerArea - Transformer / TranspilerC-bugCategory - Bug

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions