PART 11
Monorepo engineering
pnpm workspace, cross-package dep pre-bundling, Turborepo caching strategy.
- 11.1pnpm Workspace Basicspnpm workspace is the foundation of a Vite monorepo — the workspace protocol, dependency hoisting strategy, and the tradeoffs between Hoisting and Isolation.
- 11.2Vite + Monorepo PitfallsUsing Vite inside a monorepo comes with a handful of well-known pitfalls — pre-bundling failures across packages, source-import packages needing transpilePackages, and symlink resolution issues. Here's every one of them so you don't have to learn the hard way.
- 11.3Project 9: Replicate This Site's MonorepoBuild the same monorepo structure used by vite-mastery from scratch — a three-tier apps/ + packages/ + content/ architecture with a complete Vite 8 + Next.js + pnpm workspace configuration.
- 11.4Turborepo Task OrchestrationTurborepo makes monorepo builds smart — dependency-aware task ordering, remote caching, and parallel execution. What is the core difference from pnpm -r run build?