Skip to content

vue bundle size + ~2MB #295

Answered by zernonia
productdevbook asked this question in Q&A
Oct 23, 2023 · 6 comments · 2 replies
Discussion options

You must be logged in to vote

I believe it has something to do with nitro bundling all the dependencies for @unovis/vue in order to serve from server-side.

As suggested by @sadeghbarati , you should wrap the component as ClientOnly. (This applies to other charting library).

And thanks to the stackblitz provided by @sadeghbarati , can confirmed Nuxt does tree-shake properly.
Here's the Client bundle stats.

@rokotyan we can close this issue as irrelevant. 😁

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Finn-paulsen
Comment options

Comment options

You must be logged in to vote
1 reply
@Finn-paulsen
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by rokotyan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
5 participants
Converted from issue

This discussion was converted from issue #293 on October 25, 2023 17:01.