ProjectEvergreen / ProjectEvergreen/wcc
remove `inferredObservability` export const from compiled JSX output
Open
Beginner friendly
Nobody has claimed this yet.
enhancement
good first issue
InferredObservability
JSX
- Dominant language
- JavaScript
- Stars
- 126
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
Current State
Part of the setup for opting-in to JSX + Signals, is to add this line to your custom element definition file
https://wcc.dev/docs/#inferred-attribute-observability
export const inferredObservability = true;
But this isn't needed at runtime as part of the compiled output
Desired State
In jsx-loader.js, we should removed this line / node from the output.
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in jsx-loader.js and trace how the JSX output is assembled, focusing on the inferredObservability export const node. Done means compiled JSX output no longer contains that line or node; inspect the generated output to verify its removal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100