arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io

`require(esm)` support

Abierto
#252 3 comentarios 7 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
1.6k
Forks
65
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
node.js, typescript
Área
tooling
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.