Commit 895bea8
Update Pro dummy webpack config to use forEach pattern
The findIndex approach with '.scss'.match(config.test) was failing
in Shakapacker 9.1.0 because the webpack rule structure changed.
Updated Pro dummy to use the same forEach pattern as main dummy:
- Tests both 'example.scss' and 'example.module.scss'
- Safely checks if rule.use is an array before pushing
- Handles both regular SCSS and CSS Module SCSS files
This fixes the build error:
"TypeError: Cannot read properties of undefined (reading 'push')"
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent e3366cb commit 895bea8
File tree
1 file changed
+7
-4
lines changed- react_on_rails_pro/spec/dummy/config/webpack
1 file changed
+7
-4
lines changedLines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments