Skip to content

Commit

Permalink
feat(cva): use @pika/react + alias
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 12, 2020
1 parent a44bd76 commit f9b267f
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
9 changes: 5 additions & 4 deletions create-vite-app/template-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"name": "vite-react-starter",
"version": "0.0.0",
"scripts": {
"dev": "vite --jsx react",
"build": "vite build --jsx react"
"dev": "vite serve src --jsx react",
"build": "vite build src --jsx react"
},
"dependencies": {
"es-react": "^16.12.0"
"@pika/react": "^16.13.1",
"@pika/react-dom": "^16.13.1"
},
"devDependencies": {
"vite": "^0.14.2"
}
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'es-react'
import React from 'react'
import logo from './logo.svg'
import './App.css'

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { React, ReactDOM } from 'es-react'
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'

Expand Down
6 changes: 6 additions & 0 deletions create-vite-app/template-react/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
alias: {
react: '@pika/react',
'react-dom': '@pika/react-dom'
}
}

0 comments on commit f9b267f

Please sign in to comment.