Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/create-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ const FRAMEWORKS: Framework[] = [
display: 'TypeScript + SWC',
color: blue,
},
{
name: 'React Compiler (TS)',
display: 'TypeScript + React Compiler',
color: blue,
customCommand:
'npm exec degit vitejs/vite-plugin-react/packages/plugin-react/examples/compiler-ts TARGET_DIR',
},
Comment on lines +134 to +136
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The placeholder TARGET_DIR in the customCommand may not be automatically replaced at runtime. Please verify that the create-vite CLI properly handles this substitution pattern. If not, users might end up with a literal directory named "TARGET_DIR" instead of their intended project directory. Consider checking how variable substitution works in custom commands or updating to use the correct placeholder format supported by the system.

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

{
name: 'react',
display: 'JavaScript',
Expand All @@ -137,6 +144,13 @@ const FRAMEWORKS: Framework[] = [
display: 'JavaScript + SWC',
color: yellow,
},
{
name: 'React Compiler (JS)',
display: 'JavaScript + React Compiler',
color: yellow,
customCommand:
'npm exec degit vitejs/vite-plugin-react/packages/plugin-react/examples/compiler TARGET_DIR',
},
{
name: 'custom-react-router',
display: 'React Router v7 ↗',
Expand Down
Loading