复杂 Web artifact 构建路径

当请求需要 React、TypeScript、Vite、shadcn/ui、状态管理或内部路由时,先把组件结构和 bundle 边界讲清,再交付可打开的单 HTML 或真实项目目录。

Highcomplexity gate
React/Viteruntime path
bundle.htmlhandoff artifact
6 checksverification plan
1

Initialize project

React 18 + TypeScript + Vite, Tailwind/shadcn only when the task needs reusable UI primitives.

real npm step
2

Build components

App shell, routes, feature panels, state store, error boundary, import/export controls.

component map
3

Bundle to one file

Build and inline assets into a single HTML artifact; do not claim dependencies exist if this step has not run.

single HTML
4

Verify and hand off

Open the bundled file, check actions, runtime errors, mobile/desktop viewports, and export payload.

browser test

React bundle 模式:复杂应用先用项目结构开发,再打包成单 HTML。