adopted-ember-addons / adopted-ember-addons/validated-changeset

Can't be used with dynamic imports due to process.env access

Aperta
#136 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
38
Fork
27
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm trying to use validated-changeset as a demo for some REPL stuff, but am running into `process is not defined` errors, which makes sense, considering I'm `await import`ing from a browser.

See https://cdn.jsdelivr.net/npm/validated-changeset/+esm

is there a browser build available?
I see there in main and module here: https://github.com/validated-changeset/validated-changeset/blob/main/package.json#L6
just looks like browser might be missing?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start with package.json, especially the main and module fields, and reproduce the failure by dynamically importing the jsDelivr +esm URL in a browser. Determine how the package should expose a browser-compatible build; done means the same dynamic import works without a process-is-not-defined error.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.