How do I bundle and build a real application that uses vite?
I see the Three.js example uses npx esbuild app.js --bundle --outfile=foo.js --format=esm --platform=browser, which is great for simple, single-file demos, but how do I compile and bundle my TypeScript app using the full vite build system? My package.json uses tsc -b && vite build for the "build" command. How do I use this, or a variant to build my app into a desktop executable using mystral?
I guess I could dig in to the vite build docs, and learn how to create an entry point JS file by compiling TypeScript and bundling all my files together, but I suspect that many people who want to create a desktop app will be using vite or a similar system and have the same high-level question.
How do I bundle and build a real application that uses vite?
I see the Three.js example uses
npx esbuild app.js --bundle --outfile=foo.js --format=esm --platform=browser, which is great for simple, single-file demos, but how do I compile and bundle my TypeScript app using the full vite build system? My package.json usestsc -b && vite buildfor the "build" command. How do I use this, or a variant to build my app into a desktop executable using mystral?I guess I could dig in to the vite build docs, and learn how to create an entry point JS file by compiling TypeScript and bundling all my files together, but I suspect that many people who want to create a desktop app will be using vite or a similar system and have the same high-level question.