Commit 52362c5
Fix Pro dummy webpack config scss undefined error
Applied the same fix as spec/dummy to prevent webpack config error when scss
rule is not found in Shakapacker 9.3.0's generated config.
Added guard check before attempting to push to the scss config's use array.
Fixes build-dummy-app-webpack-test-bundles failure:
TypeError: Cannot read properties of undefined (reading 'push')
at commonWebpackConfig.js:32
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 1f22eb9 commit 52362c5
File tree
1 file changed
+3
-1
lines changed- react_on_rails_pro/spec/dummy/config/webpack
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments