Bundle size of Vue Router 4 lib became larger than Vue Router 3 lib #1937
Unanswered
AlexanderSlesarenko
asked this question in
Help and Questions
Replies: 1 comment 1 reply
-
I think you are not treeshaking your libraries. Maybe not minifying them. You should indeed see a smaller size with Vue Router 4 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,

I moved my project from Vue2 to Vue3 and as you can see from screenshots Vue Router bundle size increased.
Vue3:
Vue2:

Is it correct or may be I do something wrong?
How I use Vue Router:
import { createWebHistory } from 'vue-router'
import { createRouter } from 'vue-router'
If you need any additional details I will provide them.
Beta Was this translation helpful? Give feedback.
All reactions