Skip to content

Commit

Permalink
Use vitejs/plugin-react and include react dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
svenadlung committed Apr 27, 2022
1 parent 6d7e92d commit c4e6201
Show file tree
Hide file tree
Showing 5 changed files with 308 additions and 356 deletions.
3 changes: 3 additions & 0 deletions demos/includeDependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ uuid
y-prosemirror
y-webrtc
yjs
react
react-dom
react-dom/client
2 changes: 1 addition & 1 deletion demos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"@types/uuid": "^8.3.4",
"@vitejs/plugin-react-refresh": "^1.3.6",
"@vitejs/plugin-react": "^1.3.1",
"@vitejs/plugin-vue": "^1.10.2",
"autoprefixer": "^10.4.2",
"iframe-resizer": "^4.3.2",
Expand Down
4 changes: 2 additions & 2 deletions demos/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import fs from 'fs'
import fg from 'fast-glob'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import reactRefresh from '@vitejs/plugin-react-refresh'
import react from '@vitejs/plugin-react'
// import checker from 'vite-plugin-checker'

const includeDependencies = fs.readFileSync('./includeDependencies.txt')
Expand Down Expand Up @@ -37,7 +37,7 @@ export default defineConfig({
// checker({ typescript: { tsconfigPath: './tsconfig.vue-2.json' } }),
// checker({ typescript: { tsconfigPath: './tsconfig.vue-3.json' } }),
vue(),
reactRefresh(),
react(),

{
name: 'html-transform',
Expand Down

0 comments on commit c4e6201

Please sign in to comment.