Skip to content

chore: vite 8#2160

Merged
JammingBen merged 10 commits intomainfrom
chore/vite-8
Mar 19, 2026
Merged

chore: vite 8#2160
JammingBen merged 10 commits intomainfrom
chore/vite-8

Conversation

@JammingBen
Copy link
Member

@JammingBen JammingBen commented Mar 17, 2026

Bumps vite to vite 8.

This is a major jump, it uses rolldown and osx tooling under the hood, giving us build times of ~3-4 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.

Benchmark

Running pnpm build:

Metric Before (v7) After (v8) Speedup
Time ~13s ~3.5s 3,7x

@JammingBen JammingBen self-assigned this Mar 17, 2026
@JammingBen JammingBen added the Type:Maintenance E.g. technical debt, packaging, etc. label Mar 17, 2026
renovate bot and others added 9 commits March 18, 2026 13:36
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 marked this pull request as ready for review March 18, 2026 13:35
@JammingBen JammingBen requested a review from kulmann March 18, 2026 13:35
Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so awesome 😍 😍 😍

@JammingBen JammingBen merged commit 3c0fe5d into main Mar 19, 2026
28 checks passed
@JammingBen JammingBen deleted the chore/vite-8 branch March 19, 2026 09:51
openclouders pushed a commit that referenced this pull request Mar 19, 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.

2 participants