AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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