react-vendoring

Enforce React vendoring rules for correct server boundary imports.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/sigitpoerwo/repoworkspace_zahra --skill react-vendoring-sigitpoerwo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-vendoring
Source: https://github.com/sigitpoerwo/repoworkspace_zahra/tree/main/skills/03-BELUM-DICOBA/dari-clawhub/react-vendoring
Command: npx skills add https://github.com/sigitpoerwo/repoworkspace_zahra --skill react-vendoring-sigitpoerwo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures correct boundaries for vendored React and react-server layer code, preventing invalid imports and runtime errors by enforcing the entry-base.ts boundary and channel usage.

Core Features & Use Cases

  • Vendored React management: separation between node_modules and vendored code.
  • Boundary enforcement: all react-server-dom-webpack imports pass through entry-base.ts.
  • TS declarations and tooling: maintenance of type declarations for vendored React.
  • Turbopack remapping and ESLint suppression for guarded requires.

Quick Start

When editing vendored React, entry-base.ts, or related react-server tooling, apply this skill to preserve proper server-boundary imports.

Frequently Asked Questions about react-vendoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do React server boundary imports fail when using vendored code?

React server boundary imports fail when code bypasses the entry-base.ts file, which is required to enforce correct routing and prevent invalid imports across the react-server layer. This skill maintains those boundaries.

How do I enforce correct boundaries for vendored React packages?

To enforce vendored React boundaries, route all react-server-dom-webpack imports through entry-base.ts and update type declarations. This skill applies those rules when editing compiled packages or taskfile.js.

What is the purpose of entry-base.ts in a vendored React setup?

The entry-base.ts file serves as the central boundary for vendored React, ensuring all server layer imports route correctly to prevent runtime errors. It separates node_modules from vendored code.

Does Turbopack remapping affect vendored React server boundaries?

Turbopack remapping affects vendored React by requiring alignment with ESLint suppression patterns for guarded requires. This skill ensures your remaps maintain consistent server boundaries.

How do I maintain type declarations for compiled React packages?

Maintain type declarations for compiled React packages by updating $$compiled.internal.d.ts files. This skill enforces updating these declarations when editing vendored code to maintain tooling consistency.

When should I update the taskfile.js copy_vendor_react configuration?

Update the taskfile.js copy_vendor_react configuration when modifying vendored React packages to ensure proper server boundary separation. This skill applies rules to align the copy process with entry-base.ts boundaries.