doiuse with an empty configuration breaks (this bug possibly also breaks other plugins)

Aperta
#248 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
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
tooling

Direzione di ricerca

Start with the linked doiuse pull request #170 and reproduce the issue using the StackBlitz example by running npm run build. Then inspect how postcss-load-config handles the empty postcss.config.js object and check whether the same behavior affects other plugins. Done means the behavior is explained and the affected plugin cases are identified.

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

Descrizione

I'm trying to figure out two things:

  1. Why is this the way postcss-load-config treats empty configuration objects
  2. Is this choice currently breaking more plugins?

All the context you need is in this pull request I just opened.

Minimal repro:

  1. Access https://stackblitz.com/edit/vitejs-vite-f8xwph
  2. Run npm run build
  3. Notice doiuse is skipped without warning even though postcss.config.js is perfectly valid.
Lingua principale
JavaScript
Stelle
661
Fork
76
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 postcss/postcss-load-config

Tutte le issue di postcss/postcss-load-config

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.