Conditionally loading JS libraries

Oh I didn’t find this thread yesterday! For anyone landing here in the future, here’s how to configure esbuild to use JS dynamic imports, and lazy load parts of the app on demand:

2 Likes