Skip to content
Merged
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
6 changes: 3 additions & 3 deletions packages/create-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const FRAMEWORKS: Framework[] = [
color: yellow,
},
{
name: 'react-ts-swc',
name: 'react-swc-ts',
display: 'TypeScript + SWC',
color: blue,
},
Expand Down Expand Up @@ -304,9 +304,9 @@ async function init() {
// determine template
let template: string = variant || framework?.name || argTemplate
let isReactSwc = false
if (template.endsWith('-swc')) {
if (template.includes('-swc')) {
isReactSwc = true
template = template.slice(0, -4)
template = template.replace('-swc', '')
}

const pkgInfo = pkgFromUserAgent(process.env.npm_config_user_agent)
Expand Down