mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
perf(nuxt): ensure prefetchComponents
is treeshaken on server (#27905)
This commit is contained in:
parent
3561731342
commit
07ef633de2
@ -23,6 +23,8 @@ export const preloadComponents = async (components: string | string[]) => {
|
|||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
export const prefetchComponents = (components: string | string[]) => {
|
export const prefetchComponents = (components: string | string[]) => {
|
||||||
|
if (import.meta.server) { return }
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
return preloadComponents(components)
|
return preloadComponents(components)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user