Commit 04c8b91
Fix CSS modules export compatibility for ES6 imports
The NormalModuleReplacementPlugin was providing CommonJS exports but the
React components use ES6 module syntax (import * as style). This fix
provides proper ES6 named exports for common CSS class names including
'bright' which is used by the HelloWorld component.
This should resolve the "export 'bright' was not found" error by providing
both named exports and a default export that contains the CSS class mappings.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent faa813e commit 04c8b91
File tree
1 file changed
+15
-1
lines changed- lib/generators/react_on_rails/templates/base/base/config/webpack
1 file changed
+15
-1
lines changedLines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
55 | 69 | | |
56 | 70 | | |
57 | 71 | | |
| |||
0 commit comments