File tree Expand file tree Collapse file tree 12 files changed +1313
-19601
lines changed Expand file tree Collapse file tree 12 files changed +1313
-19601
lines changed Original file line number Diff line number Diff line change 33 "version" : " 1.0.1" ,
44 "private" : true ,
55 "devDependencies" : {
6- "@rsbuild/core" : " 1.1.0 " ,
7- "@rslib/core" : " 0.1.3 " ,
6+ "@rsbuild/core" : " 1.2.19 " ,
7+ "@rslib/core" : " 0.5.4 " ,
88 "@types/node" : " ^22.10.1" ,
99 "typescript" : " ^5.7.2"
1010 }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export const nodeMinifyConfig: Minify = {
1616 // preserve variable name and disable minify for easier debugging
1717 mangle : false ,
1818 minify : false ,
19- compress : false ,
19+ compress : true ,
2020 } ,
2121 } ,
2222} ;
@@ -27,8 +27,8 @@ export const pluginCleanTscCache: RsbuildPlugin = {
2727 setup ( api ) {
2828 api . onBeforeBuild ( ( ) => {
2929 const tsbuildinfo = path . join (
30- api . context . rootPath ,
31- 'tsconfig.tsbuildinfo' ,
30+ api . context . rootPath ,
31+ 'tsconfig.tsbuildinfo' ,
3232 ) ;
3333 if ( fs . existsSync ( tsbuildinfo ) ) {
3434 fs . rmSync ( tsbuildinfo ) ;
@@ -40,12 +40,21 @@ export const pluginCleanTscCache: RsbuildPlugin = {
4040export const esmConfig : LibConfig = {
4141 format : 'esm' ,
4242 syntax : 'es2021' ,
43+ shims : {
44+ esm : {
45+ __dirname : true
46+ }
47+ } ,
4348 dts : {
4449 build : true ,
4550 } ,
4651 plugins : [ pluginCleanTscCache ] ,
4752 output : {
4853 minify : nodeMinifyConfig ,
54+ externals : {
55+ '@babel/traverse' : 'commonjs @babel/traverse' ,
56+ '@babel/generator' : 'commonjs @babel/generator' ,
57+ }
4958 } ,
5059} ;
5160
Original file line number Diff line number Diff line change 1010 "typecheck" : " tsc -b"
1111 },
1212 "dependencies" : {
13- "@react-router/node" : " ^7.1.3 " ,
13+ "@react-router/node" : " ^7.4.0 " ,
1414 "@react-router/serve" : " ^7.1.3" ,
1515 "isbot" : " ^5.1.17" ,
1616 "react" : " ^19.0.0" ,
1717 "react-dom" : " ^19.0.0" ,
18- "react-router" : " ^7.1.3 "
18+ "react-router" : " ^7.4.0 "
1919 },
2020 "devDependencies" : {
2121 "@cloudflare/workers-types" : " ^4.20241112.0" ,
2222 "@react-router/cloudflare" : " ^7.1.3" ,
23- "@react-router/dev" : " ^7.1.3 " ,
23+ "@react-router/dev" : " ^7.4.0 " ,
2424 "@rsbuild/core" : " ^1.2.3" ,
2525 "@rsbuild/plugin-react" : " ^1.1.0" ,
2626 "@rsbuild/plugin-react-router" : " workspace:*" ,
Original file line number Diff line number Diff line change 1515 "license" : " ISC" ,
1616 "dependencies" : {
1717 "@react-router/express" : " ^7.0.2" ,
18- "@react-router/node" : " ^7.0.2 " ,
18+ "@react-router/node" : " ^7.4.0 " ,
1919 "express" : " ^4.21.2" ,
2020 "isbot" : " ^5.1.22" ,
2121 "react" : " ^19.0.0" ,
2222 "react-dom" : " ^19.0.0" ,
23- "react-router" : " ^7.0.2 "
23+ "react-router" : " ^7.4.0 "
2424 },
2525 "devDependencies" : {
26- "@react-router/dev" : " ^7.0.2 " ,
26+ "@react-router/dev" : " ^7.4.0 " ,
2727 "@rsbuild/core" : " ^1.2.3" ,
2828 "@rsbuild/plugin-react" : " ^1.1.0" ,
2929 "@rsbuild/plugin-react-router" : " workspace:*" ,
Original file line number Diff line number Diff line change 1313 },
1414 "dependencies" : {
1515 "@react-router/express" : " ^7.1.3" ,
16- "@react-router/node" : " ^7.1.3 " ,
16+ "@react-router/node" : " ^7.4.0 " ,
1717 "@react-router/serve" : " ^7.1.3" ,
1818 "isbot" : " ^5.1.17" ,
1919 "react" : " ^19.0.0" ,
2020 "react-dom" : " ^19.0.0" ,
21- "react-router" : " ^7.1.3 "
21+ "react-router" : " ^7.4.0 "
2222 },
2323 "devDependencies" : {
2424 "@playwright/test" : " ^1.50.1" ,
25- "@react-router/dev" : " ^7.1.3 " ,
25+ "@react-router/dev" : " ^7.4.0 " ,
2626 "@rsbuild/core" : " ^1.2.3" ,
2727 "@rsbuild/plugin-react" : " ^1.1.0" ,
2828 "@rsbuild/plugin-react-router" : " workspace:*" ,
You can’t perform that action at this time.
0 commit comments