Commit 1f4a1a3
perf: Optimize add_react_on_rails_package to eliminate redundant array conversions
Address Justin's minor optimization suggestion:
- Use add_js_dependencies_batch instead of add_js_dependency for single package
- Work with arrays consistently throughout the method flow
- Eliminates unnecessary string→array→string conversions
- Maintains identical functionality with improved efficiency
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 3d73d5a commit 1f4a1a3
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
| 87 | + | |
86 | 88 | | |
87 | | - | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
0 commit comments