Change React plugin

This commit is contained in:
Mihovil Ilakovac 2024-01-18 17:18:32 +01:00
parent aa0d496c57
commit 79bf3cdfb4
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{{={= =}=}}
/// <reference types="vitest" />
import { mergeConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import react from "@vitejs/plugin-react";
{=# customViteConfig.isDefined =}
{=& customViteConfig.importStatement =}
@ -30,9 +30,9 @@ const defaultViteConfig = {
environment: "jsdom",
setupFiles: ["./src/test/vitest/setup.ts"],
},
resolve: {
dedupe: ["react", "react-dom"],
},
// resolve: {
// dedupe: ["react", "react-dom"],
// },
};
// https://vitejs.dev/config/

View File

@ -158,7 +158,7 @@ npmDepsForWasp spec =
("@types/react", "^18.0.37"),
("@types/react-dom", "^18.0.11"),
("@types/react-router-dom", "^5.3.3"),
("@vitejs/plugin-react-swc", "^3.0.0"),
("@vitejs/plugin-react", "^4.2.1"),
("dotenv", "^16.0.3"),
-- NOTE: Make sure to bump the version of the tsconfig
-- when updating Vite or React versions