Modern Web cover image

Building the TanStack with Tanner Linsley

Modern Web

CHAPTER

Bling Module Bundle Splitting

module bundle splitting is possible in the same file under the same mechanics. So instead of creating a server function that we rip it out on the client, but we leave it on the server, in this case, split would just rip it out into a new virtual module and return an asynchronous import to that virtual module inside of the code that we had it. For you. Instead of us writing that breakout file, it takes the sort of boilerplate dance that is like, OK, lazy dynamically import this. And then you can actually do your react lazy import right here. Then you need to wrap it. You can just do lazy like that. Something like that.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner