onServerPrefetch
hook present in client side bundled vue app
#12537
Llois41
started this conversation in
General Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I started a little
vue-ssr
app and noticed that theonServerPrefetch
method will be included in the bundled client side JavaScript. I do not think that this should be the case since it is dead code in the client. Now I am wondering if this an issue invue
or the bundler (vite
in this case) or its plugins (@vitejs/plugin-vue
in this case).Is this a valid expectation from my side or am I missing something?
Thanks in advance for any input on this!
Beta Was this translation helpful? Give feedback.
All reactions