Use vitejs/plugin-react and include react dependencies
This commit is contained in:
@@ -20,3 +20,6 @@ uuid
|
||||
y-prosemirror
|
||||
y-webrtc
|
||||
yjs
|
||||
react
|
||||
react-dom
|
||||
react-dom/client
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user