Skip to content

Commit

Permalink
cva: move react jsx option into config
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 13, 2020
1 parent 976b8a2 commit e6bfd20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions create-vite-app/template-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "vite-react-starter",
"version": "0.0.0",
"scripts": {
"dev": "vite serve src --jsx react",
"build": "vite build src --jsx react --outDir dist "
"dev": "vite serve src",
"build": "vite build src --outDir dist "
},
"dependencies": {
"@pika/react": "^16.13.1",
Expand All @@ -12,4 +12,4 @@
"devDependencies": {
"vite": "^0.14.4"
}
}
}
3 changes: 2 additions & 1 deletion create-vite-app/template-react/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ module.exports = {
alias: {
react: '@pika/react',
'react-dom': '@pika/react-dom'
}
},
jsx: 'react'
}

0 comments on commit e6bfd20

Please sign in to comment.