Skip to content

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

@thescientist13

Description

@thescientist13

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

Would be good to find a way to make their installation and usage within the code more opt-in. Also, as observed in ProjectEvergreen/greenwood#972, it might nice to refactor jsx-loader.js so escodegen is not a leaky abstraction.

Metadata

Metadata

Labels

featureNew feature or request

Type

No type

Projects

Status

🔖 Ready

Status

📋 Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions