Skip to content

chore: vite 8#2160

Draft
JammingBen wants to merge 9 commits intomainfrom
chore/vite-8
Draft

chore: vite 8#2160
JammingBen wants to merge 9 commits intomainfrom
chore/vite-8

Conversation

@JammingBen
Copy link
Member

Bumps vite to vite 8.

This is a major jump, it uses rolldown and osx tooling under the hood, giving us build times of ~2-3 seconds. For more details, I recommend reading https://vite.dev/blog/announcing-vite8.

There are few noteworthy changes in this PR, it's best reviewed by commits.

  • Removes rollup-plugin-vite. There is no need to compress when building Web since the OpenCloud Web server already does this on the fly when serving the assets.
  • Removes rollup-plugin-visualizer. This plugin doesn't seem to be used by any of us.
  • Removes vite-plugin-environment. We can use basic vite functionality instead.
  • Removes ejs. We can use basic vite functionality instead.
  • I needed to fiddle with tailwind a bit when building.
    • The plugin was missing when building design-system and web-pkg, (correctly) resulting in a lot of build errors.
    • The mechanism to ensure the main tailwind.css file comes before any CSS needed some tweaking, hence the new vite plugins in cee8ced.

renovate bot and others added 9 commits March 17, 2026 09:43
There is no need to compress when building Web since the OpenCloud Web server already does this on the fly when serving the assets.
This plugin doesn't seem to be used by any of us, hence removes it.
We only used this lib to feed data from `vite.config.ts` into the `index.html` file, which can be done with basic vite functionality. Hence removes this dependency in favor of that.
@JammingBen JammingBen self-assigned this Mar 17, 2026
@JammingBen JammingBen added the Type:Maintenance E.g. technical debt, packaging, etc. label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant