Switch to ESM-only (unblocks ESM-only use-editable)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- nodejs, react, typescript
調査の方向性
The build is configured in tsdown.config.mts, and the entry fields (main, module, types, exports) live in package.json. Read both to see how the CJS and ESM outputs are produced today, then check the docs for the Jest setup guidance. Done means one ESM build, with attw's esm-only profile and publint both passing, the docs noting the Jest options, and a major changeset added. Leave the use-editable dependency bump until that package has shipped.
索引モデルが issue の本文から書いたものです。
説明
Switch react-live to ESM-only (drop the CJS build). This is a major version.
Why
This unblocks making use-editable ESM-only. react-live's CJS build (dist/index.js) does require("use-editable"), so if use-editable went ESM-only first, react-live users running Jest (default CJS mode) would break with "Must use import to load ES Module". Tested with Jest 30.5. Node handles require() of ESM since 20.19 / 22.12, but Jest's module loader doesn't.
Scope
-
"type": "module", singleformat: 'esm'build intsdown.config.mts - Update
main/module/types/exportsto the ESM-only output - attw
esm-onlyprofile, publint clean - Docs: note ESM-only and the Jest guidance (ESM mode or
transformIgnorePatterns) - Changeset (major)
Then
Make use-editable ESM-only: "type": "module", a single ESM build, main → dist/use-editable.js, drop module and .es.js. No exports map needed: Node resolves an ESM main without one (verified, and attw esm-only passes). Bump react-live's use-editable dependency once that's released.
- 主要言語
- TypeScript
- スター
- 4.6k
- フォーク
- 260
- 平均マージ
- 17時間 25分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
FormidableLabs/react-live のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
FormidableLabs/react-live#419 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
FormidableLabs/react-live#417 ·
-
bad syntax React.useEffect crashs the site対応中かも @tunglambk が 7 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
FormidableLabs/react-live#413 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
FormidableLabs/react-live#411 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
FormidableLabs/react-live#410 · コメント 1 件 ·
FormidableLabs/react-live の issue をすべて見る
似ている issue
-
check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
iptv-org/iptv#55821 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vercel-labs/wterm#246 ·
メンテナーはふだん 1 日以内に返信
-
bug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nearform/lastlight#452 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
fix(console): include PARTITIONED BY in generated table DDL対応中かも @aubdiy が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/polaris-tools#291 ·
メンテナーはふだん 6 日以内に返信