Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
feat: use official react (#34)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: It require vite>=1.0.0-rc.13. And user should install official react.
  • Loading branch information
csr632 committed Dec 3, 2020
1 parent e003058 commit ffc40cb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 22 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

Provides React Fast Refresh support for Vite.

Note: Vite requires using `@pika/react` and `@pika/react-dom` which are ESM mirrors of the official React packages. This plugin automatically injects the correct alias for you so you can just `import React from 'react'` as usual.

This plugin is included by default in the [create-vite-app](https://github.com/vitejs/create-vite-app) React template.

``` js
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-react",
"version": "3.0.2",
"version": "4.0.0",
"description": "React fast refresh plugin for Vite",
"main": "dist/index.js",
"files": [
Expand Down Expand Up @@ -32,11 +32,11 @@
"react-refresh": "^0.8.2"
},
"peerDependencies": {
"vite": ">=1.0.0-beta.1"
"vite": ">=1.0.0-rc.13"
},
"devDependencies": {
"@types/node": "^14.0.3",
"typescript": "^3.9.2",
"vite": "^1.0.0-beta.1"
"vite": "^1.0.0-rc.13"
}
}
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { resolver } from './resolver'
import { reactRefreshServerPlugin } from './serverPlugin'
import { reactRefreshTransform } from './transform'

module.exports = {
resolvers: [resolver],
configureServer: reactRefreshServerPlugin,
transforms: [reactRefreshTransform]
}
15 changes: 0 additions & 15 deletions src/resolver.ts

This file was deleted.

0 comments on commit ffc40cb

Please sign in to comment.