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 19
19
"@babel/plugin-syntax-typescript" : " ^7.27.1" ,
20
20
"@rspack/cli" : " 1.3.15" ,
21
21
"@rspack/core" : " 1.3.15" ,
22
- "@swc/react-compiler" : " 1.12.4 " ,
22
+ "@swc/react-compiler" : " 1.12.7 " ,
23
23
"@types/react" : " ^19.1.8" ,
24
24
"@types/react-dom" : " ^19.1.6" ,
25
25
"babel-loader" : " ^10.0.0" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const config = {
22
22
{
23
23
loader : 'builtin:swc-loader' ,
24
24
options : {
25
- sourceMap : true ,
25
+ sourceMaps : true ,
26
26
jsc : {
27
27
parser : {
28
28
syntax : 'typescript' ,
@@ -33,18 +33,13 @@ const config = {
33
33
} ,
34
34
] ,
35
35
} ,
36
- {
37
- test : ( resouce ) =>
38
- / \. ( j s x | t s x ) $ / . test ( resouce ) && isReactCompilerRequiredSync ( fs . readFileSync ( resouce ) ) ,
39
- loader : 'babel-loader' ,
40
- } ,
41
36
{
42
37
test : / \. ( j s x | t s x ) $ / ,
43
38
use : [
44
39
{
45
40
loader : 'builtin:swc-loader' ,
46
41
options : {
47
- sourceMap : true ,
42
+ sourceMaps : true ,
48
43
jsc : {
49
44
parser : {
50
45
syntax : 'typescript' ,
@@ -61,6 +56,11 @@ const config = {
61
56
} ,
62
57
] ,
63
58
} ,
59
+ {
60
+ test : ( resouce ) =>
61
+ / \. ( j s x | t s x ) $ / . test ( resouce ) && isReactCompilerRequiredSync ( fs . readFileSync ( resouce ) ) ,
62
+ loader : 'babel-loader' ,
63
+ } ,
64
64
{
65
65
test : / \. ( p n g | s v g | j p g ) $ / ,
66
66
type : 'asset/resource' ,
Original file line number Diff line number Diff line change 18
18
"@babel/plugin-syntax-jsx" : " ^7.27.1" ,
19
19
"@rspack/cli" : " 1.3.15" ,
20
20
"@rspack/core" : " 1.3.15" ,
21
- "@swc/react-compiler" : " 1.12.4 " ,
21
+ "@swc/react-compiler" : " 1.12.7 " ,
22
22
"babel-loader" : " ^10.0.0" ,
23
23
"babel-plugin-react-compiler" : " 0.0.0-experimental-cd3852a-20241229"
24
24
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const config = {
22
22
{
23
23
loader : 'builtin:swc-loader' ,
24
24
options : {
25
- sourceMap : true ,
25
+ sourceMaps : true ,
26
26
jsc : {
27
27
parser : {
28
28
syntax : 'ecmascript' ,
@@ -33,18 +33,13 @@ const config = {
33
33
} ,
34
34
] ,
35
35
} ,
36
- {
37
- test : ( resouce ) =>
38
- / \. j s x $ / . test ( resouce ) && isReactCompilerRequiredSync ( fs . readFileSync ( resouce ) ) ,
39
- loader : 'babel-loader' ,
40
- } ,
41
36
{
42
37
test : / \. j s x $ / ,
43
38
use : [
44
39
{
45
40
loader : 'builtin:swc-loader' ,
46
41
options : {
47
- sourceMap : true ,
42
+ sourceMaps : true ,
48
43
jsc : {
49
44
parser : {
50
45
syntax : 'ecmascript' ,
@@ -59,11 +54,13 @@ const config = {
59
54
} ,
60
55
} ,
61
56
} ,
62
- {
63
- loader : 'babel-loader' ,
64
- } ,
65
57
] ,
66
58
} ,
59
+ {
60
+ test : ( resouce ) =>
61
+ / \. j s x $ / . test ( resouce ) && isReactCompilerRequiredSync ( fs . readFileSync ( resouce ) ) ,
62
+ loader : 'babel-loader' ,
63
+ } ,
67
64
{
68
65
test : / \. ( p n g | s v g | j p g ) $ / ,
69
66
type : 'asset/resource' ,
You can’t perform that action at this time.
0 commit comments