refactor(core): load generators by import specifier - #958
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #958 +/- ##
==========================================
+ Coverage 86.50% 88.82% +2.31%
==========================================
Files 195 197 +2
Lines 17964 18132 +168
Branches 1632 1664 +32
==========================================
+ Hits 15540 16105 +565
+ Misses 2418 2020 -398
- Partials 6 7 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
PR SummaryMedium Risk Overview
Generator modules drop Signature parsing helpers move from Reviewed by Cursor Bugbot for commit c8553db. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
| File | Main | PR | Change |
|---|---|---|---|
orama-db.json |
8.89 MB | 8.89 MB | +1.00 B (+0.0%) |
Performance estimate (single CI run)
- Generation time: 4.7% faster (9.19 s → 8.76 s)
- Peak memory: 1.7% higher (1.71 GB → 1.73 GB)
web Generator
Output size: 3 files changed · net +88.00 B
File size details
| File | Main | PR | Change |
|---|---|---|---|
assets/all-FbBHLixS.js |
22.13 MB | — | -22.13 MB (-100.0%) |
assets/all-m3n2S8pb.js |
— | 22.13 MB | +22.13 MB |
all.html |
21.37 MB | 21.37 MB | +88.00 B (+0.0%) |
Performance estimate (single CI run)
- Generation time: 1.7% faster (75.90 s → 74.64 s)
- Peak memory: 0.6% higher (5.20 GB → 5.23 GB)
Generators are no longer resolved through a static registry.
Now, they're now loaded dynamically by import specifier.
--targetaccepts either a built-in shorthand (web,legacy-html, …) or any import specifier that resolves to a generator module (e.g.some-package/generator,./my-generator.mjs). A generator'sdependsOnfield is likewise now a full import specifier.