Support usage from source in downstream

Aperta
#536 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@adamkudrna ci sta già lavorando.

Dal 15/4/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

feature

As of now, we only support the quick-usage scenario via ready-to-use CSS and JS bundles.

Expert Mode

Aside from that, we also want to support the "expert" scenario for those who want to have more control over what is bundled into their app. This means:

  • loading common Sass source files directly (everything except components),
  • loading JS components as modules that take their Sass styles with them.

👉 Add the "module" directive to our package.json to make the ESM way easier: https://antfu.me/posts/publish-esm-and-cjs

Caveats

⚠️ Beware of Sass imports we currently have in our src/index.js:

import './theme.scss';
import './foundation.scss';
import './helpers.scss';

⚠️ Do not break current CSS and JS bundles.

Lingua principale
TypeScript
Stelle
23
Fork
10
Merge medio
5g 12h
PR unite (30g)
9

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 react-ui-org/react-ui

Tutte le issue di react-ui-org/react-ui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.