Use vitejs/plugin-react and include react dependencies

This commit is contained in:
svenadlung
2022-04-27 17:34:51 +02:00
parent 6d7e92d584
commit c4e6201f3e
5 changed files with 311 additions and 359 deletions

View File

@@ -20,3 +20,6 @@ uuid
y-prosemirror
y-webrtc
yjs
react
react-dom
react-dom/client

View File

@@ -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",

View File

@@ -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')
@@ -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',