Commit eebfdec
committed
Fix Stimulus controller class name for SWC compatibility
SWC's keepClassNames option doesn't preserve anonymous class names.
Changed from 'export default class extends Controller' to
'export default class CommentsController extends Controller' to ensure
the class name is preserved for Stimulus registration.
This should fix the failing RSpec tests where Stimulus controllers
weren't being properly registered.1 parent 4907899 commit eebfdec
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments