Commit bc716e0
Move ServerComponentsPage to ror_components for auto-discovery
Justin's PR used manual registerServerComponent() in stimulus-bundle.js
because his custom rspackRscPlugin didn't integrate with the auto-bundling
flow. With the upstream RSCWebpackPlugin, auto-bundling works: the
generate_packs task scans ror_components/ directories, classifies files
without 'use client' as Server Components, and generates the registration
file in generated/ServerComponentsPage.js automatically.
Moved from: bundles/server-components/ServerComponentsPage.jsx
Moved to: bundles/server-components/ror_components/ServerComponentsPage.jsx
Updated relative imports (./components/ -> ../components/) and flipped the
view from auto_load_bundle: false to true. No manual registration, no
stimulus-bundle.js modification. Matches the Pro dummy pattern where
server component sources sit in the auto-discovered directory.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 138befb commit bc716e0
2 files changed
Lines changed: 4 additions & 4 deletions
File tree
- app/views/pages
- client/app/bundles/server-components/ror_components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments