43081j / 43081j/relit

marked dependency causes problems with skypack

Aperta
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
109
Fork
3
Merge medio
5h 52m
PR unite (30g)
2

Descrizione

...and maybe other CDNs or build setups.

basically marked seems to result in this from skypack:

> Failed to load node_modules/marked/bin/marked.js
> Unexpected token (1:0) in marked/bin/marked.js

which makes little sense since it has no reason to try import the `bin` file. marked correctly points the main file (and via export maps) to their ESM bundle.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Check the package.json for the marked dependency and its export maps. Look at how skypack or other CDNs resolve imports, especially for bin files. Investigate the build setup in relit to see where marked is imported and how it's bundled. Test with a minimal reproduction to confirm the issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, typescript
Ambito
build-system, tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.