
React Vendoring
Vendored React channels, the entry-base.ts boundary, and type declarations for Next.js App Router react-server layers.
- skills.sh installs
- 945
- GitHub stars
- 143.6K
- last updated
- May 16, 2026
What it does
- Covers App Router React vendoring into
packages/next/src/compiled/, including stable and experimental channels and thecopy_vendor_react()task - Requires all
react-server-dom-webpack/*imports to go throughentry-base.ts, with other files reaching Flight APIs viaComponentMod - Walks through adding Node.js-only React APIs with type declarations, a
process.envguard, and scoped ESLint suppression - Designed for changes touching
$$compiled.internal.d.ts,compiled/react*packages, or Turbopack remapping toreact-server-dom-turbopack
Install
$ npx -y skills add vercel/next.js --skill react-vendoring -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
React Vendoring
Use this skill for changes touching vendored React, react-server-dom-webpack/*, or react-server layer boundaries.
App Router Vendoring
React is NOT resolved from node_modules for App Router. It's vendored into packages/next/src/compiled/ during pnpm build (task: copy_vendor_react() in taskfile.js). Pages Router resolves React from node_modules normally.
- Two channels: stable (
compiled/react/) and experimental (compiled/react-experimental/). The runtime bundle webpack config aliases to the correct channel viamakeAppAliases({ experimental }).
entry-base.ts Boundary
Only entry-base.ts is compiled in rspack's (react-server) layer. ALL imports from react-server-dom-webpack/* (Flight server/static APIs) must go through entry-base.ts. Other files like stream-ops.node.ts or app-render.tsx must access Flight APIs via the ComponentMod parameter (which is the entry-base.ts module exposed through the app-page.ts build template).
Details
- Repository
- github.com/vercel/next.js
- Category
- Frontend & UI Code
- First seen
- Apr 16, 2026
More from vercel/next.js
All 14Similar to React Vendoring
More Frontend & UI Code
flagsvercel/next.js900 installsStep-by-step guide for wiring a new or changed Next.js experimental flag from type declaration through runtime bundles.
nextjs-on-cloudflarecloudflare/skills60.4K installsBuild and deploy Next.js apps on Cloudflare Workers with vinext, not OpenNext, for new projects.
react-server-components-frameworkyonatangross/orchestkit227 installsServer-first Next.js 16+ skill covering App Router, Cache Components, streaming SSR, and Server Actions.
react-nextjs-developmentsickn33/agentic-awesome-skills1.3K installsPhased workflow for building React and Next.js 14+ apps with App Router, Server Components, TypeScript, and Tailwind CSS.
nextjs-react-typescriptmindrally/skills5.4K installsOpinionated Next.js App Router guidance for TypeScript and React that favors Server Components and Tailwind-based UI.