File tree Expand file tree Collapse file tree 5 files changed +80
-76
lines changed Expand file tree Collapse file tree 5 files changed +80
-76
lines changed Original file line number Diff line number Diff line change 1919 "@babel/plugin-syntax-typescript" : " ^7.27.1" ,
2020 "@rspack/cli" : " 1.3.15" ,
2121 "@rspack/core" : " 1.3.15" ,
22- "@swc/react-compiler" : " 1.12.4 " ,
22+ "@swc/react-compiler" : " 1.12.7 " ,
2323 "@types/react" : " ^19.1.8" ,
2424 "@types/react-dom" : " ^19.1.6" ,
2525 "babel-loader" : " ^10.0.0" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const config = {
2222 {
2323 loader : 'builtin:swc-loader' ,
2424 options : {
25- sourceMap : true ,
25+ sourceMaps : true ,
2626 jsc : {
2727 parser : {
2828 syntax : 'typescript' ,
@@ -33,18 +33,13 @@ const config = {
3333 } ,
3434 ] ,
3535 } ,
36- {
37- test : ( resouce ) =>
38- / \. ( j s x | t s x ) $ / . test ( resouce ) && isReactCompilerRequiredSync ( fs . readFileSync ( resouce ) ) ,
39- loader : 'babel-loader' ,
40- } ,
4136 {
4237 test : / \. ( j s x | t s x ) $ / ,
4338 use : [
4439 {
4540 loader : 'builtin:swc-loader' ,
4641 options : {
47- sourceMap : true ,
42+ sourceMaps : true ,
4843 jsc : {
4944 parser : {
5045 syntax : 'typescript' ,
@@ -61,6 +56,11 @@ const config = {
6156 } ,
6257 ] ,
6358 } ,
59+ {
60+ test : ( resouce ) =>
61+ / \. ( j s x | t s x ) $ / . test ( resouce ) && isReactCompilerRequiredSync ( fs . readFileSync ( resouce ) ) ,
62+ loader : 'babel-loader' ,
63+ } ,
6464 {
6565 test : / \. ( p n g | s v g | j p g ) $ / ,
6666 type : 'asset/resource' ,
Original file line number Diff line number Diff line change 1818 "@babel/plugin-syntax-jsx" : " ^7.27.1" ,
1919 "@rspack/cli" : " 1.3.15" ,
2020 "@rspack/core" : " 1.3.15" ,
21- "@swc/react-compiler" : " 1.12.4 " ,
21+ "@swc/react-compiler" : " 1.12.7 " ,
2222 "babel-loader" : " ^10.0.0" ,
2323 "babel-plugin-react-compiler" : " 0.0.0-experimental-cd3852a-20241229"
2424 }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const config = {
2222 {
2323 loader : 'builtin:swc-loader' ,
2424 options : {
25- sourceMap : true ,
25+ sourceMaps : true ,
2626 jsc : {
2727 parser : {
2828 syntax : 'ecmascript' ,
@@ -33,18 +33,13 @@ const config = {
3333 } ,
3434 ] ,
3535 } ,
36- {
37- test : ( resouce ) =>
38- / \. j s x $ / . test ( resouce ) && isReactCompilerRequiredSync ( fs . readFileSync ( resouce ) ) ,
39- loader : 'babel-loader' ,
40- } ,
4136 {
4237 test : / \. j s x $ / ,
4338 use : [
4439 {
4540 loader : 'builtin:swc-loader' ,
4641 options : {
47- sourceMap : true ,
42+ sourceMaps : true ,
4843 jsc : {
4944 parser : {
5045 syntax : 'ecmascript' ,
@@ -59,11 +54,13 @@ const config = {
5954 } ,
6055 } ,
6156 } ,
62- {
63- loader : 'babel-loader' ,
64- } ,
6557 ] ,
6658 } ,
59+ {
60+ test : ( resouce ) =>
61+ / \. j s x $ / . test ( resouce ) && isReactCompilerRequiredSync ( fs . readFileSync ( resouce ) ) ,
62+ loader : 'babel-loader' ,
63+ } ,
6764 {
6865 test : / \. ( p n g | s v g | j p g ) $ / ,
6966 type : 'asset/resource' ,
You can’t perform that action at this time.
0 commit comments