Commit d06a8db
committed
#780 Migrate build from webpack to Vite
- Changed build config from webpack to vite (see details below).
- Moved root files to /lib for better code organization, leaving main entry points in root.
- Implemented custom customElement decorator to work around duplicated registrations.
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#21461 parent fb51eb1 commit d06a8db
128 files changed
Lines changed: 3955 additions & 3843 deletions
File tree
- .github/workflows
- config
- examples
- header
- matrix
- scripts
- src
- acl
- cdn
- chat
- components
- button
- combobox
- header
- photo-capture
- select
- create
- design-system
- components
- account
- button
- combobox-option
- combobox
- dialog-content
- dialog-header
- dialog-provider
- dialogs-root
- dialog
- login-modal
- provider
- lib/auth
- header
- lib
- login
- media
- primitives
- components
- avatar
- guard
- login-button
- logout-button
- signup-button
- lib
- storybook/components
- types
- utils
- keyHelpers
- v2/components/layout/header
- widgets
- buttons
- forms
- autocomplete
- test
- browser/tabs
- unit
- chat
- vite-config
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments