Commit 07c13ea
Add loose mode and env config to .swcrc for proper class transforms
The issue was that .swcrc was missing critical SWC configuration that
Shakapacker's swc-loader normally provides (loose: true and env config).
When .swcrc exists, it takes precedence over the loader config, so we
need to include these settings explicitly.
This fixes Stimulus controller static properties not being properly
transpiled, which was causing the RSpec tests to fail.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 51b30e0 commit 07c13ea
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
0 commit comments