File tree Expand file tree Collapse file tree 4 files changed +125
-564
lines changed Expand file tree Collapse file tree 4 files changed +125
-564
lines changed Original file line number Diff line number Diff line change 3434 "devDependencies" : {
3535 "@repo/eslint-config" : " workspace:*" ,
3636 "@repo/typescript-config" : " workspace:*" ,
37- "@testing-library/react" : " ^16.3.0" ,
3837 "@types/node" : " ^24.3.0" ,
39- "@types/react" : " ^19.1.11" ,
40- "@types/react-dom" : " ^19.1.7" ,
41- "@vitejs/plugin-react" : " ^5.0.1" ,
4238 "@vitest/coverage-v8" : " ^3.2.4" ,
4339 "esbuild-plugin-rdi" : " ^0.0.0" ,
44- "esbuild-plugin-react18" : " 0.2.6" ,
45- "esbuild-plugin-react18-css" : " ^0.0.4" ,
46- "jsdom" : " ^26.1.0" ,
47- "react" : " ^19.1.1" ,
48- "react-dom" : " ^19.1.1" ,
4940 "tsup" : " ^8.5.0" ,
5041 "typescript" : " ^5.9.2" ,
5142 "vite-tsconfig-paths" : " ^5.1.4" ,
5243 "vitest" : " ^3.2.4"
5344 },
54- "dependencies" : {
55- "r18gs" : " ^3.0.1"
56- },
57- "peerDependencies" : {
58- "@types/react" : " >=16.8" ,
59- "next" : " >=10" ,
60- "react" : " >=16.8"
61- },
62- "peerDependenciesMeta" : {
63- "next" : {
64- "optional" : true
65- }
66- },
6745 "funding" : [
6846 {
6947 "type" : " github" ,
9371 " Modern" ,
9472 " Seamless integration"
9573 ]
96- }
74+ }
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" ;
42import { rdiPlugin } from "esbuild-plugin-rdi" ;
53
64export default defineConfig (
@@ -13,11 +11,7 @@ export default defineConfig(
1311 clean : ! options . watch ,
1412 bundle : true ,
1513 minify : ! options . watch ,
16- esbuildPlugins : [
17- react18Plugin ( { disableJSXRequireDedup : true } ) ,
18- cssPlugin ( { generateScopedName : "[folder]__[local]" } ) ,
19- rdiPlugin ( ) ,
20- ] ,
14+ esbuildPlugins : [ rdiPlugin ( ) ] ,
2115 ...options ,
2216 } ) as Options ,
2317) ;
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 : {
9- environment : "jsdom " ,
8+ environment : "node " ,
109 globals : true ,
1110 setupFiles : [ ] ,
1211 coverage : {
You can’t perform that action at this time.
0 commit comments