3min chapter

Modern Web cover image

Building the TanStack with Tanner Linsley

Modern Web

CHAPTER

How to Create a New Virtual File for VIT

When you build and compile, it's going to say whatever's inside of this split function, we're going to extract it out and put it into a new virtual file. And if there were any other dependencies or imports you were relying on, it would also include those and bring them over into the other file as well. So that's the idea behind it. You know, it never occurred to me that the sort of ceremonial dance where I pull, where I create that new component, and then dynamically, lazily import that stuff, and then come back and do is not done by the compiler. There's no signal, there's no flag, there’s no marker, there

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode