What problem does it solve?
This Skill helps teams enforce correct vendoring of React and strict server-boundary rules by centralizing changes through the entry-base.ts layer and its associated compiled packages, ensuring consistent behavior across the React server and app environments.
Core Features & Use Cases
- Vendored React management: ensures React is vendored into packages/next/src/compiled and that the App Router resolves React from the vendored sources rather than node_modules.
- Boundary enforcement: guarantees all imports from react-server-dom-webpack go through entry-base.ts, preventing unsafe references outside the boundary.
- Type declarations maintenance: updates $$compiled.internal.d.ts when new vendored APIs are added, keeping type surface accurate.
- Turbopack remap guidance and ESLint suppression: documents how Turbopack remaps affect bindings and provides patterns for safe ESLint suppression for guarded requires.
Quick Start
Edit entry-base.ts and related vendored React packages to implement the required boundary rules.