Skip to content

#780 Migrate to Vite, Vitest, and Storybook 10#787

Draft
NoelDeMartin wants to merge 5 commits into
SolidOS:stagingfrom
NoelDeMartin:780-vite
Draft

#780 Migrate to Vite, Vitest, and Storybook 10#787
NoelDeMartin wants to merge 5 commits into
SolidOS:stagingfrom
NoelDeMartin:780-vite

Conversation

@NoelDeMartin

@NoelDeMartin NoelDeMartin commented Jun 4, 2026

Copy link
Copy Markdown
Member

Still have some cleanup to do, that's why I'm opening this as a draft. But I think most of the changes are in the right direction. Will add more details after the final clean up, but the most relevant changes are probably the generated dist/ folder and the package.json export declarations. You can use the updates in README as a guide, but they've been mostly AI generated and I haven't reviewed that yet (I have reviewed or written myself mostly everything else, though :D).

- Include staging branch in CI
- Run type checks
The new configuration produces the following outputs:

- For npm consumers, *.esm.js and *.cjs.js files. The main export exposes helpers, all components can be registered with solid-ui/components, and individual components can be registered with solid-ui/components/*.
- For modern CDNs, we have ESM bundles in *.js files, also allowing all components or invidiual imports. These now include solid-logic and rdflib, no need to load them separatedly.
- For legacy CDNs, we still have the UMD bundles, but those are discouraged and not documented in the README anymore. These ones still externalize solid-logic and rdflib.

References:
- Lit Publishing docs: https://lit.dev/docs/tools/publishing
- Web Awesome installation docs: https://webawesome.com/docs
- Web Awesome discussion on CDN declarations: shoelace-style/webawesome#2146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve build system

1 participant