cspotcode / cspotcode/v8-compile-cache-lib
Support for loading modules with dynamic imports
- Lingua principale
- JavaScript
- Stelle
- 12
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Upstream has a bug related to requiring files with ESM `import()` calls. The bug appears to be tracked on https://github.com/zertosh/v8-compile-cache/issues/41
There are a few libraries affected by this, notably NX (see open issue https://github.com/nrwl/nx/issues/18974) and ESLint (which dropped v8-compile-cache due to this https://twitter.com/slicknet/status/1559619176230047744)
I've got a workaround which appears to work for my use case (see the NX issue). I've filled a PR with that workaround in upstream https://github.com/zertosh/v8-compile-cache/pull/47
Since this for appears to be more active than upstream, I thought it would be good to bring the discussion here.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia leggendo upstream issue 41 e la soluzione alternativa in upstream pull request 47, quindi confronta il NX issue interessato e il contesto di ESLint. Identifica l'ambito necessario per supportare in questa library i file che usano chiamate ESM import(); il lavoro è completato quando il caso di dynamic-import segnalato funziona senza l'upstream failure.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100