/mini-vite

a repo to learn vite, support static server, load ts files, pre-bundling.

Primary LanguageTypeScriptMIT LicenseMIT

Mini Vite

Just a repo for learn Vite.

Features

  • Same structure with Vite.
  • Support JS, TS, JSX, TSX, CSS, static files.
  • Support public as public directory.
  • Dependency Pre-Bundling.
  • Hot Module Replacement. (working in progress 30%)
  • Load local config file.
  • Read ENV from .env.*.

Preview

pnpm i

cd packages/mini-vite && pnpm build 

cd packages/demo && pnpm dev

Run in local

cd packages/mini-vite && pnpm build:watch