mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-09-11 15:26:19 +03:00
Change React plugin
This commit is contained in:
parent
aa0d496c57
commit
79bf3cdfb4
@ -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/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user