Skip to content

chore: fix vite build errors#5766

Open
mbtools wants to merge 2 commits intoverdaccio:masterfrom
mbtools:ui-comp-css-build
Open

chore: fix vite build errors#5766
mbtools wants to merge 2 commits intoverdaccio:masterfrom
mbtools:ui-comp-css-build

Conversation

@mbtools
Copy link
Copy Markdown
Collaborator

@mbtools mbtools commented Mar 31, 2026

Vite build of UI had a few issues:

  • Styling of readme and syntax highlighting was broken because CSS bundling didn't work anymore
  • Theme customization regarding color palette was lost
  • Missing debug dependency

Changes - ui-components:

  • Switched to vite.lib.config.ts which creates types and removed tsc from build
  • Added linkEntryCssPlugin which makes sure CSS is part of the graph and therefore picked up by ui-theme
  • Readme styling rework
    • updated github-markdown.css
    • included hljs-github-light.css / hljs-github-dark.css (instead of conflicting imports)
    • theming based on default @mui behavior (using data-theme)
  • Added custom colors palette to theme
  • Adjusted a few components for the new styling/build setup
  • Excluded src/test from build
  • Removed obsolete resolution for msw since all deps use same msw version anyway (see pnpm why msw)

Changes - ui-theme:

  • Added debug dependency which is used in index.js
  • Increase chuck size limit to avoid build warning
  • Fixed INEFFECTIVE_DYNAMIC_IMPORT of pages

Changes - vite.lib.config.ts:

  • Removed interop setting which is obsolete with rolldownOptions

Ref: Build errors after switching to vite dts:

dts-type-issues.log

@mbtools mbtools marked this pull request as ready for review March 31, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant