Vite 8 + cleanup for static/dynamic imports #3500

Merged
hj merged 50 commits from optimize into develop 2026-06-07 21:40:35 +00:00
Owner
No description provided.
hj added 17 commits 2026-06-02 21:00:18 +00:00
visualizer + fixes
Some checks failed
ci/woodpecker/pr/build Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline was canceled
df81fb85db
remove visualizer as it boosts node version
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline failed
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build unknown status
f9767ec3cf
hj added 2 commits 2026-06-02 23:19:41 +00:00
confirm modal + lint
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline failed
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build unknown status
0eb652f95f
hj added 2 commits 2026-06-02 23:54:27 +00:00
css optimizations
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline failed
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build unknown status
c550ae5654
undo changes
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build unknown status
335717ed5d
hj added 3 commits 2026-06-03 03:05:43 +00:00
serviceworker troubles
Some checks failed
ci/woodpecker/pr/build Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline was canceled
400879f59d
this annoys me
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build unknown status
feff3e23c7
Owner

Functionality and asset/emoji caching are both ok in prod build

Functionality and asset/emoji caching are both ok in prod build
vite.config.js Outdated
@ -135,6 +136,12 @@ export default defineConfig(async ({ mode, command }) => {
},
}),
vueJsx(),
DevTools({
Owner

What is the rationale for enabling devtools for prod builds?

What is the rationale for enabling devtools for prod builds?
Author
Owner

I don't think its enabled in prod build.

I don't think its enabled in prod build.
Author
Owner

You need to explicitly enable it for prod build:

https://devtools.vite.dev/guide/#building-with-the-app

You need to explicitly enable it for prod build: https://devtools.vite.dev/guide/#building-with-the-app
hj marked this conversation as resolved
Owner

Also do you know why tests are failing?

Also do you know why tests are failing?
Author
Owner

@tusooa wrote in #3500 (comment):

Also do you know why tests are failing?

Tests are failing in router tests, probably because some routes now have async components assigned to them

@tusooa wrote in https://git.pleroma.social/pleroma/pleroma-fe/pulls/3500#issuecomment-115993: > Also do you know why tests are failing? Tests are failing in router tests, probably because some routes now have async components assigned to them
use vite to build sw-pleroma.js in dev mode
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build unknown status
1ef2015344
hj force-pushed optimize from 1ef2015344
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build unknown status
to dad1d02b58
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline failed
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build unknown status
2026-06-04 16:54:29 +00:00
Compare
hj added 2 commits 2026-06-04 18:25:16 +00:00
more minor dynamic imports
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline failed
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build unknown status
e6db1813ed
hj added 6 commits 2026-06-04 20:22:46 +00:00
fix tests
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline failed
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build unknown status
b37b75c473
hj added 2 commits 2026-06-07 20:45:46 +00:00
remove .only
Some checks failed
ci/woodpecker/pr/build Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline was canceled
8f92d72845
bump node version
Some checks failed
ci/woodpecker/pr/build Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline was canceled
c9574d849b
hj force-pushed optimize from c9574d849b
Some checks failed
ci/woodpecker/pr/build Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline was canceled
to 9db308d8f0
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test-e2e Pipeline failed
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build unknown status
2026-06-07 20:50:18 +00:00
Compare
Merge remote-tracking branch 'origin/develop' into optimize
Some checks failed
ci/woodpecker/pr/build Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test-e2e Pipeline was canceled
3bf558089f
lint
Some checks failed
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test-e2e Pipeline failed
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build unknown status
9edce2d3aa
modify logout logic in e2e
All checks were successful
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test-e2e Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
305acec19f
hj merged commit e239fce8cf into develop 2026-06-07 21:40:35 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-fe!3500
No description provided.