-
Notifications
You must be signed in to change notification settings - Fork 142
fix(rivetkit): use shims for cjs imports #3658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Pull Request Review: fix(rivetkit): use shims for cjs importsSummaryThis PR adds the ✅ Code Quality & Best PracticesPositive:
Suggestion: - // Required to replace `import.meta.ur.` with CJS shims
+ // Required to replace `import.meta.url` with CJS shims🔍 Technical AnalysisContext: return createRequire(import.meta.url);Why this change is needed:
Impact:
🐛 Potential IssuesNo issues identified - this is a straightforward configuration fix. ⚡ Performance ConsiderationsNeutral impact:
🔒 Security ConcernsNo security concerns - this is a build configuration change with no security implications. 🧪 Test CoverageObservations:
Recommendation: # Build the packages
pnpm build
# Test in a CJS environment (e.g., create a test script that requires the CJS build)
node -e "const rivetkit = require('./rivetkit-typescript/packages/rivetkit/dist/index.cjs'); console.log('CJS import successful');"📋 Additional Notes
✨ Verdict✅ Approve with minor typo fix This is a well-scoped PR that addresses a real compatibility issue. The only actionable item is fixing the typo in the comment on line 26 of Suggested action before merge:
Review completed on 2025-12-18 |
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
1cd1c93 to
f28e53b
Compare
Merge activity
|

No description provided.