Skip to content

v0.8.1 — Fix Vite/Rollup sideEffects Tree-Shaking & UI Polish

Choose a tag to compare

@pinguxx pinguxx released this 23 Nov 03:50
· 51 commits to main since this release

Hotfix Highlights

  • Vite / Rollup Custom Element Registration (package.json): Added ./src/index.js and ./src/react/index.js to sideEffects alongside ./src/components/*.js and ./src/tokens.css so bundlers never tree-shake away custom element registration when importing @wcomp/elementum or @wcomp/elementum/react.
  • Scoped Dark Mode (src/tokens.css): Added [data-theme="dark"] alongside :root[data-theme="dark"] for scoped dark containers.
  • Button Height Normalization (src/components/el-button.js): Normalized min-height and line-height across sm/md/lg variants.
  • Switch Track Collapse (src/components/el-switch.js): Added flex-shrink: 0 to .track.