N
Nuxt2mo ago
OK3N

Lazy loading components outside of /components

Hello! I know we can prepend "Lazy" to a component name to lazy load it. But would it work if the component is explicitely imported from somewhere else than /components? Like this: from import Banner from '@/components/Banner/Banner.vue' to import LazyBanner from '@/components/Banner/Banner.vue' or even from a vue component library ? from import Button from '@library/Button.vue' to import LazyButton from '@library/Button.vue' would this work?
1 Reply
owljackob
owljackob2mo ago
Isn't the best way to just try it? )
Want results from more Discord servers?
Add your server