Commit b4a1673
Use Babel for Stimulus controllers, SWC for everything else
SWC has compatibility issues with Stimulus controllers' static class
properties and inheritance from @hotwired/stimulus Controller class.
This hybrid approach uses:
- Babel for files in client/app/controllers/ (Stimulus)
- SWC for all other JavaScript/React code
The Babel rule is added via commonWebpackConfig.js and uses the same
preset-env settings that Babel previously used for the entire codebase.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent d27fd67 commit b4a1673
File tree
4 files changed
+20083
-1382
lines changed- config/webpack
4 files changed
+20083
-1382
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
71 | 92 | | |
72 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
73 | 99 | | |
74 | 100 | | |
75 | 101 | | |
0 commit comments