Skip to content

Commit 1f996e6

Browse files
justin808claude
andcommitted
Use config/swc.config.js instead of .swcrc for config merging
The .swcrc file completely overrides Shakapacker's swc-loader default config, which includes important settings like loose: true and env config for polyfills. By using config/swc.config.js instead, our React-specific config gets merged with Shakapacker's defaults via webpack-merge, preserving all the necessary transpilation settings that Stimulus controllers need. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 07c13ea commit 1f996e6

File tree

2 files changed

+9
-22
lines changed

2 files changed

+9
-22
lines changed

.swcrc

Lines changed: 0 additions & 22 deletions
This file was deleted.

config/swc.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
jsc: {
3+
transform: {
4+
react: {
5+
runtime: "automatic"
6+
}
7+
}
8+
}
9+
};

0 commit comments

Comments
 (0)