fix(create): nest nitro rollup config #457
main fromrefs/pull/457/head·opened Summary#
Generated React Nitro/Railway projects now pass Sentry rollup externals through Nitro's config option. This avoids the type error caused by passing rollupConfig at the top level of the Nitro Vite plugin options.
Validation#
pnpm --filter @tanstack/create buildpnpm --filter @tanstack/create test
Summary by CodeRabbit#
- Chores
- Updated build configuration structure for Nitro and Railway hosting integrations to align with current plugin requirements.
- Preserved external handling for Sentry packages during builds.
- 1
Note
GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.
Thanks for catching this on the older Nitro version. The current pin accepts the existing Rollup option, so I’m closing this patch. The generated app did turn up a separate Sentry build failure, which #560 addresses.
AI review notes: Fresh React apps with Sentry and Nitro, Railway, and Render built and typechecked with the current top-level option and the Sentry fix from #560. The generic Nitro fixture also served the demo route through the generated dev and production commands on localhost. In the same fixture, changing only the plugin call to the nested form caused TypeScript to reject
configonNitroPluginConfigwith Nitro 3.0.260610-beta. No deployment provider was contacted.tannerlinsley closed this
Sign in to join this conversation.
📝 Walkthrough
Walkthrough#
Two hosting integration snippets now nest
rollupConfiginside aconfigobject withinnitro(). Both snippets preserve the@sentry/externalization rule.Changes#
Nitro Configuration Examples
packages/create/src/frameworks/react/hosts/nitro/info.json,packages/create/src/frameworks/react/hosts/railway/info.jsonrollupConfiginsideconfigwhile preserving the@sentry/external pattern.Estimated code review effort: 1 (Trivial) | ~3 minutes
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share