ProjectEvergreen / ProjectEvergreen/wcc

remove `inferredObservability` export const from compiled JSX output

Open Beginner friendly
#257 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.