T
TanStack5mo ago
secure-lavender

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
like-gold
like-gold4mo ago
did you try automatic code splitting?

Did you find this page helpful?