build: replace unbuild with Vite and add bundle analysis#7
Conversation
174f628 to
bb94aa2
Compare
|
Bundle ReportChanges will increase total bundle size by 260.5kB (100.0%) ⬆️
|
|
It looks like this PR has been idle for 90 days. If it's still something you're working on or would like to pursue, please leave a comment or update your branch. Otherwise, we'll be closing this PR in 10 days to reduce our backlog. Thanks! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7 +/- ##
===========================
===========================
Continue to review full report in Codecov by Harness.
|
|
It looks like this PR has been idle for 90 days. If it's still something you're working on or would like to pursue, please leave a comment or update your branch. Otherwise, we'll be closing this PR in 10 days to reduce our backlog. Thanks! |
|
It looks like this PR has been idle for 90 days. If it's still something you're working on or would like to pursue, please leave a comment or update your branch. Otherwise, we'll be closing this PR in 10 days to reduce our backlog. Thanks! |
|
It looks like this PR has been idle for 90 days. If it's still something you're working on or would like to pursue, please leave a comment or update your branch. Otherwise, we'll be closing this PR in 10 days to reduce our backlog. Thanks! |
bb94aa2 to
58244b7
Compare
Reworked the build pipeline to run Vite for JS output and `tsc --project tsconfig.build.json` for declaration generation, replacing `vite-plugin-dts` with native TypeScript emit settings. Internal source imports/exports were updated to explicit `.js` specifiers across configs, providers, renders, and entrypoints to align ESM output and TS 7 behavior. Dev dependencies were also simplified (removing dts/api-extractor-related tooling and unused lint plugin) while upgrading TypeScript to ^7.0.0.
|



Description
Replace
unbuildwith Vite and integrate Codecov's Vite bundle-analysis plugin.The new build preserves the existing ESM library and CLI entrypoints. Vite externalizes declared runtime dependencies and Node built-ins while continuing to bundle build-time-only helpers.
The project now uses a single TypeScript 7 dependency for both typechecking and native declaration emission. The legacy JavaScript compiler-API declaration stack has been removed, and internal relative imports use explicit
.jsspecifiers so the emitted declaration tree works with NodeNext consumers. The package exposes those declarations through an explicittypesexport condition.Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.