ProjectEvergreen / ProjectEvergreen/wcc
make JSX transformations (and dependencies) opt-in / lazy loaded
Open
@thescientist13 is already working on this.
Since Mar 29, 2023.
feature
- Dominant language
- JavaScript
- Stars
- 126
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
Type of Change
Feature
Summary
It would be nice if the opt-in feature of authoring in JSX could be more intentional in that specific dependencies could be avoided on install / consumption unless needed.
Detail
For example, a "vanilla" WCC implementation without JSX does not require
- acorn-jsx
- escodegen
- Signal Polyfill / effect no-op (see #233 )
Would be good to find a way to make their installation and usage within the code more opt-in. Also, as observed in https://github.com/ProjectEvergreen/greenwood/issues/972, it might nice to refactor jsx-loader.js so escodegen is not a leaky abstraction.
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.
Assessment
This issue has not been assessed yet.