Commit d9e719e
Revert Pro dummy webpack config to use original master approach
The forEach approach with RegExp.test() broke Pro dummy tests.
Reverting to the original findIndex approach that was working
on master, which uses '.scss'.match(rule.test).
While '.scss'.match(rule.test) is technically backwards (should be
rule.test.test('.scss')), it works correctly and tests pass.
The main spec/dummy still uses the improved forEach pattern since
it was already updated as part of the Shakapacker 9.0 upgrade.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 1d3bfea commit d9e719e
File tree
1 file changed
+4
-7
lines changed- react_on_rails_pro/spec/dummy/config/webpack
1 file changed
+4
-7
lines changedLines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
0 commit comments