Vite: Plugin System and SSR Mode
Write a Vite plugin with transform and load hooks, integrate third-party plugins, and configure Vite for server-side rendering with the ssrBuild option.
Why Vite Won
Vite (French for 'fast') was created by Evan You. It serves source files unbundled in dev via native ES modules — instant cold starts. Production uses Rollup for bundling. The dev experience is dramatically faster than Webpack.
How Vite's Dev Server Works
Modern browsers support ES modules natively. Vite serves your source files as-is, transforming TypeScript/JSX on demand. No bundling = no waiting on cold starts.
All lessons in this course
- Vite: Plugin System and SSR Mode
- esbuild: Speed and Limitations
- pnpm Workspaces for Monorepos
- Turbo: Caching and Task Pipelines