Add worker and browser entry points to package.json#12
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughIn ChangesPackage Export Conditions
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@libs/vectoriadb/package.json`:
- Around line 36-37: The package.json exports configuration currently uses
"worker" and "browser" conditions that override the default root export (the "."
export) to resolve to worker.js, which has a reduced API surface. This breaks
consumers expecting the full API when importing "vectoriadb" in browser/worker
environments. Instead of using conditional overrides, create explicit additive
entry points by replacing the "worker" and "browser" condition keys with subpath
exports like "./worker" and "./browser" that point to the respective dist files,
while preserving the default root "." export for the full API surface.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 1129faa7-8fe6-470e-b764-f684e19172dd
📒 Files selected for processing (1)
libs/vectoriadb/package.json
Summary by CodeRabbit