Skip to content

vite build #9

Description

@danwexler

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions