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

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