-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 Feature: Support Vite as build tool (opt-in Block) #1917
Comments
Indeed - I've been slowly getting more dissatisfied with how @birkskyum do you have examples you can share of Vite configs and how they're run? I'd love to add a block/option for Vite as a build tool, even if it's not enabled by default. For reference, in v2, you can omit tsup: npx create typescript-app@beta --exclude-tsup ...and then add in whatever builders/bundlers/etc on your own manually. |
Here an example of this "Library mode" with a vite config that's used in all the packages of e.g. the Tanstack Router https://github.com/TanStack/config/blob/main/packages/config/src/vite/index.js Or just basic rollup config like in the Tanstack Table |
Another straightforward example is https://github.com/JoshuaKGoldberg/stoptalking: it uses Vite for a local dev server. Marking as accepting PRs - thanks for the idea! The way this would work in create-typescript-app is as an "opt-in Block". As in, it wouldn't be part of the standard presets folks use, but they'd be able to opt into using Vite instead of TSup with: npx create-typescript-app --add-vite --exclude-tsup A couple of recent alternate builders are:
|
@all-contributors please add @birkskyum for ideas.
|
I've put up a pull request to add @birkskyum! 🎉 |
Overview
Looking at the Bundler options, I see only tsup (esbuild)
I'd like to use Vite as the build tool.
The text was updated successfully, but these errors were encountered: