File tree Expand file tree Collapse file tree 4 files changed +204
-3894
lines changed
Expand file tree Collapse file tree 4 files changed +204
-3894
lines changed Original file line number Diff line number Diff line change 2626 "devDependencies" : {
2727 "@repo/eslint-config" : " workspace:*" ,
2828 "@repo/typescript-config" : " workspace:*" ,
29- "@testing-library/react" : " ^16.1.0" ,
3029 "@types/node" : " ^22.10.2" ,
31- "@types/react" : " ^19.0.1" ,
32- "@types/react-dom" : " ^19.0.2" ,
33- "@vitejs/plugin-react" : " ^4.3.4" ,
3430 "@vitest/coverage-v8" : " ^2.1.8" ,
3531 "esbuild" : " ^0.24.0" ,
36- "esbuild-plugin-rdi" : " ^0.0.0" ,
37- "esbuild-plugin-react18" : " 0.2.5" ,
38- "esbuild-plugin-react18-css" : " ^0.0.4" ,
39- "jsdom" : " ^25.0.1" ,
40- "react" : " ^19.0.0" ,
41- "react-dom" : " ^19.0.0" ,
4232 "tsup" : " ^8.3.5" ,
4333 "typescript" : " ^5.7.2" ,
4434 "vite-tsconfig-paths" : " ^5.1.4" ,
Original file line number Diff line number Diff line change 11import { defineConfig , type Options } from "tsup" ;
2- import react18Plugin from "esbuild-plugin-react18" ;
3- import cssPlugin from "esbuild-plugin-react18-css" ;
4- import { rdiPlugin } from "esbuild-plugin-rdi" ;
52
63export default defineConfig (
74 ( options : Options ) =>
@@ -13,11 +10,6 @@ export default defineConfig(
1310 clean : ! options . watch ,
1411 bundle : true ,
1512 minify : ! options . watch ,
16- esbuildPlugins : [
17- react18Plugin ( { disableJSXRequireDedup : true } ) ,
18- cssPlugin ( { generateScopedName : "[folder]__[local]" } ) ,
19- rdiPlugin ( ) ,
20- ] ,
2113 ...options ,
2214 } ) as Options ,
2315) ;
Original file line number Diff line number Diff line change 11import { defineConfig } from "vitest/config" ;
2- import react from "@vitejs/plugin-react" ;
32import tsconfigPaths from "vite-tsconfig-paths" ;
43
54// https://vitejs.dev/config/
65export default defineConfig ( {
7- plugins : [ react ( ) , tsconfigPaths ( ) ] ,
6+ plugins : [ tsconfigPaths ( ) ] ,
87 test : {
98 environment : "node" ,
109 globals : true ,
You can’t perform that action at this time.
0 commit comments