We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 348146f commit b3b9ac5Copy full SHA for b3b9ac5
1 file changed
packages/create-vite/src/index.ts
@@ -106,7 +106,7 @@ const FRAMEWORKS: Framework[] = [
106
color: yellow,
107
},
108
{
109
- name: 'react-ts-swc',
+ name: 'react-swc-ts',
110
display: 'TypeScript + SWC',
111
color: blue,
112
@@ -304,9 +304,9 @@ async function init() {
304
// determine template
305
let template: string = variant || framework?.name || argTemplate
306
let isReactSwc = false
307
- if (template.endsWith('-swc')) {
+ if (template.includes('-swc')) {
308
isReactSwc = true
309
- template = template.slice(0, -4)
+ template = template.replace('-swc', '')
310
}
311
312
const pkgInfo = pkgFromUserAgent(process.env.npm_config_user_agent)
0 commit comments