Commit 1685fb4
Fix CSS modules to use default exports for ReScript compatibility
Shakapacker 9 changed CSS modules default to namedExport: true, but
the existing ReScript code expects default exports (import css from).
Changes:
- Set namedExport: false for all CSS loaders
- Change exportLocalsConvention from camelCaseOnly to camelCase
- Apply fix to all CSS-related rules, not just SCSS
This resolves SSR errors: "Cannot read properties of undefined
(reading 'elementEnter')" in ReScript components.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 012b0b7 commit 1685fb4
1 file changed
+16
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
23 | 39 | | |
24 | 40 | | |
25 | 41 | | |
| |||
51 | 67 | | |
52 | 68 | | |
53 | 69 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
0 commit comments