Commit 1b3e731
Fix Stimulus compatibility by targeting ES6 class support
Stimulus 3 requires pure ES6 classes and cannot work when transpiled
to ES5. By adding env.targets with 'supports es6-class', we ensure
SWC doesn't downcompile classes to ES5, which was breaking the Stimulus
controller functionality.
This follows the same approach needed for TypeScript + Stimulus where
targeting ES6 explicitly is required for compatibility.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 1f996e6 commit 1b3e731
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
0 commit comments