vitejs/vite ? reverse-engineered prompt
Reverse engineered prompt
I want to create a new frontend build tool that makes the development experience way faster. It should have two main parts.
First, a dev server that starts instantly and serves source files over native ES modules. The most important feature is lightning-fast Hot Module Replacement (HMR), so when a developer saves a change, the browser updates immediately without a full page refresh.
Second, it needs a build command that bundles all the code for production. This should use something like Rollup under the hood and be pre-configured to output highly optimized and efficient static assets.
The whole system should be written in TypeScript, have a universal plugin API to make it extensible, and provide fully typed APIs for other developers to use. Also, include a little CLI tool to help users quickly scaffold a new project with all the right settings. It's all about speed and a great developer workflow.
Are you gonna build this?
make sure you review the code using coderabbit