react-ui-org / react-ui

React UI is a themeable and performant UI library for React apps.
https://react-ui.io
MIT License
21 stars 7 forks source link

Support usage from source in downstream #536

Open adamkudrna opened 5 months ago

adamkudrna commented 5 months ago

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:

👉 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.