Fix theorem-chat-register Next webpack imports - #194
Conversation
Drop extensionful relative imports so the console Railway build can transpile the package the same way theorem-acp and model-canvas do.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 54 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
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. Comment |
There was a problem hiding this comment.
Pull request overview
Fixes a Console/Next.js webpack resolution failure when consuming @commonplace/theorem-chat-register by removing explicit .js suffixes from the package’s internal relative imports (aligning with other workspace packages’ extensionless import style).
Changes:
- Replaced
./*.jsrelative imports with extensionless./*imports across the package. - Updated the package barrel (
src/index.ts) to use extensionless re-exports (including removing the explicit.tsxsuffix). - Adjusted TypeScript compiler options in
tsconfig.json(removedverbatimModuleSyntax; see review comment).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/theorem-chat-register/tsconfig.json | Compiler option tweak related to module syntax handling. |
| packages/theorem-chat-register/src/webview-html.ts | Extensionless import for REGISTER_IMPL. |
| packages/theorem-chat-register/src/TheoremChatRegister.tsx | Extensionless imports for internal modules/types. |
| packages/theorem-chat-register/src/session.ts | Extensionless type import for transport. |
| packages/theorem-chat-register/src/session.test.ts | Updated test imports to match new extensionless paths. |
| packages/theorem-chat-register/src/index.ts | Extensionless barrel exports for all submodules. |
| packages/theorem-chat-register/src/http-stream-transport.ts | Extensionless type import for transport. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "strict": true, | ||
| "skipLibCheck": true, | ||
| "noEmit": true, | ||
| "verbatimModuleSyntax": true, | ||
| "types": ["vitest/globals"] | ||
| }, |
Summary
8383fb37failed: webpack could not resolve./register-impl.jsstyle imports from@commonplace/theorem-chat-register.Test plan
pnpm --filter @commonplace/theorem-chat-register testnode scripts/doctor.mjs/chatgreen