arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
`require(esm)` support
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.6k
- Forks
- 65
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
i may be missing something, but it seems we don't support `require(esm)`.
this messaging suggests it is an error:
https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/161725ad2e8957f109e44fb26b13c9d70f415c2f/docs/problems/CJSResolvesToESM.md?plain=1#L3
but in node 20 and above, it is no longer an error and should work fine
not sure how we should determine this in ATTW, though. since we'd need to know what node versions you're targeting?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start with the linked docs/problems/CJSResolvesToESM.md guidance and compare its claim with Node 20 and later behavior. Determine which Node versions ATTW targets before deciding how require(esm) should be classified; done means the analysis and messaging match those supported targets.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- node.js, typescript
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100