Commit faa813e
Fix CSS modules webpack loader syntax error
The previous data URI loader approach violated webpack's modern syntax rules.
This fix uses NormalModuleReplacementPlugin instead to replace CSS module
imports with a mock proxy object that provides identity mapping for any
property access.
This approach works with webpack 5's stricter loader rules while still
providing the necessary fallback behavior for test environments.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 0bd1017 commit faa813e
File tree
1 file changed
+10
-10
lines changed- lib/generators/react_on_rails/templates/base/base/config/webpack
1 file changed
+10
-10
lines changedLines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments