Commit 3f7e452
Use externals instead of fallbacks for Node builtins in server bundle
The server bundle runs in Node.js, so use externals to resolve path, fs,
stream at runtime via require() instead of replacing them with empty modules.
This avoids potential runtime crashes when react-on-rails-pro RSC modules
are imported transitively.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 92306ff commit 3f7e452
1 file changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
0 commit comments