Skip to content

Commit fbf0932

Browse files
justin808claude
andcommitted
Complete Babel cleanup and add React Refresh to SWC config
- Remove @babel/core direct dependency (still used by Jest, which is fine) - Add React Refresh configuration to swc.config.js: - Enable development mode in development environment - Enable Fast Refresh for hot module replacement - This ensures React Fast Refresh works properly with SWC 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c2462aa commit fbf0932

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spec/dummy/config/swc.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ module.exports = {
77
transform: {
88
react: {
99
runtime: 'automatic',
10+
development: process.env.NODE_ENV === 'development',
11+
refresh: process.env.NODE_ENV === 'development', // Enable Fast Refresh in development
1012
},
1113
},
1214
},

spec/dummy/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"regenerator-runtime": "^0.13.4"
2929
},
3030
"devDependencies": {
31-
"@babel/core": "7.17.9",
3231
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
3332
"@rescript/react": "^0.13.0",
3433
"@types/react": "^19.0.0",

0 commit comments

Comments
 (0)