Switch to ESM-only (unblocks ESM-only use-editable)
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Refactoring
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- nodejs, react, typescript
- Bereich
- build-system, documentation
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 4.6k
- Forks
- 260
- Ø Merge
- 17 Std. 25 Min.
- Gemergte PRs (30 T.)
- 3
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus FormidableLabs/react-live
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
FormidableLabs/react-live#419 · 2 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
FormidableLabs/react-live#417 ·
-
bad syntax React.useEffect crashs the siteEvtl. vergeben @tunglambk hat das vor 8 Tagen übernommen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
FormidableLabs/react-live#413 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
FormidableLabs/react-live#411 · 1 Kommentar ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
FormidableLabs/react-live#410 · 1 Kommentar ·
Alle Issues in FormidableLabs/react-live
Ähnliche Issues
-
area: repo priority: P2 type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
appandflow/stim#4107 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 60/100
lingdojo/kana-dojo#32859 · 1 Kommentar · 5 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
code-quality refactoring
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
github/gh-aw-firewall#10364 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Merge the duplicate kaffir_corn record into sorghumEvtl. vergeben @Crypto-Shroom hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Crypto-Shroom/Bird-Feed-Calculator#322 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
drizzle-team/drizzle-orm#6552 ·
Maintainer antworten meist innerhalb von 2 Tagen