[BUG] Library forces CommonJS

Aperta
#283 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, nodejs, typescript

Direzione di ricerca

No source file or test is named. Start by reproducing the issue with top-level await after installing this library, using the package.json module setting and the stated TypeScript environment; done means installing the library no longer makes TypeScript treat the project as CommonJS.

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

Descrizione

Needs Triage
Is there an existing issue for this?
  • I have searched the existing issues
Current Behavior

I use to-level await in one of my projects. After installing this library typescript stops considering the "module" parameter in package.json and considers the whole project as CommonJS.

Expected Behavior

Should not affect top-level code

Steps To Reproduce
  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...
Environment
  • npm:
  • Node:
  • OS:
  • platform:
Lingua principale
JavaScript
Stelle
825
Fork
231
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di npm/ini

Tutte le issue di npm/ini

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.