swc-project / swc-project/swc-node

emitDecoratorMetadata is not as tsc

Open
#401 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2k
Forks
95
Avg merge
14d 11h
Merged PRs (30d)
1

Description

When emitDecoratorMetadata is enabled, property decorators is being called with property descriptors but tsc dont do this only return property descriptor when is set or is a function

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the difference between swc-node and tsc with emitDecoratorMetadata enabled and a property decorator. Compare whether the decorator receives a property descriptor, then define completion as matching tsc's behavior; the issue names no source file or test to begin with.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.