Should literal dynamic import('pkg') follow into the module graph?
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- build-system
Línea de trabajo
Start by reading the dynamic import handling that emits SC2013, then compare it with static import graph construction and the related issue #363 and corpus case 9537. The issue asks whether literal dynamic imports should enter the module graph, including package type handling and evaluation or interop constraints; done means resolving that design question and implementing the agreed behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
scriptc 0.4.11, main at 918d80b26a, macOS arm64.
Question: should a literal import("pkg") follow into the module graph like a static import?
const m = await import("ms");
console.log(m.default(1000));
With no static import of ms, the build refuses with SC2013 and the package is not compiled. A literal specifier is statically known, so it could be added to the graph the same way a static import is, with the namespace typed from the package types. Is that feasible, or is there a blocker (evaluation order, conditional loading, ESM/CJS interop)? Related: #363 and corpus case 9537.
PR #3527 improves the diagnostic meanwhile: it names the package (not @types/ms) and hints at adding a static import.
- Lenguaje dominante
- TypeScript
- Estrellas
- 6.5k
- Forks
- 212
- Merge medio
- 13 h 46 min
- PR fusionados (30 d)
- 787
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de vercel-labs/scriptc
-
Dificultad 3/5 1-2 días Aptitud para principiantes 54/100
vercel-labs/scriptc#3534 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 46/100
vercel-labs/scriptc#3533 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 66/100
vercel-labs/scriptc#3531 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 53/100
vercel-labs/scriptc#3530 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 57/100
vercel-labs/scriptc#3529 ·
Los mantenedores suelen responder en 1 día
Todos los issues de vercel-labs/scriptc
Issues similares
-
area:tooling good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
interledger/publisher-tools#1007 ·
Los mantenedores suelen responder en 1 día
-
priority/medium roadmap/v1.1.1 stakeholder/rapr type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
databrickslabs/ontos#1420 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
vercel-labs/just-bash#756 ·
Los mantenedores suelen responder en 1 día
-
area: ci good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
interledger/web-monetization-extension#1555 ·
Los mantenedores suelen responder en 1 día
-
[t-dialog] 弹窗组件和抽屉组件的文档说明不够详细清楚Abierto🐞 bug 🧐 unconfirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Tencent/tdesign-vue-next#7056 · 1 comentario ·
Los mantenedores suelen responder en 1 día