ProjectEvergreen / ProjectEvergreen/wcc

make JSX transformations (and dependencies) opt-in / lazy loaded

Open
#116 0 comments 0 reactions 1 assignee View on GitHub

@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

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.