T
TanStack4w ago
generous-apricot

IIFE build option with code splitting?

Hi all, My apps require them to be built wrapped in an IIFE, I typically use the format option in vite build config for this (see screenshot) I want to move these apps to TS router, however, when I have this option in my vite build, I lose code splitting with .lazy routes. Is there anyway I can output my TS router apps wrapped in an iife?
No description
1 Reply
secure-lavender
secure-lavender4w ago
did you try automatic code splitting?

Did you find this page helpful?