Skip to content

Commit a834855

Browse files
Fix production build: Remove hardcoded development mode from SWC config (#195)
The .swcrc file was forcing React development mode with jsxDEV transforms, which caused 'jsxDEV is not a function' errors in production builds. Removed the hardcoded development flag to let SWC determine mode from webpack.
1 parent 5046c8b commit a834855

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.swcrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
},
1313
"transform": {
1414
"react": {
15-
"runtime": "automatic",
16-
"development": true
15+
"runtime": "automatic"
1716
}
1817
},
1918
"externalHelpers": false,

0 commit comments

Comments
 (0)