You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(vite-plus): support lazy field in vite-plus config (#526)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> **Medium Risk**
> Adds new config evaluation behavior that can change when/which plugins are included, and adjusts CLI build output (new CJS artifact) and CI build ordering; mistakes here could break consumer configs or packaging.
>
> **Overview**
> Adds a custom `defineConfig` wrapper in `vite-plus` that supports a `lazy()` field to asynchronously provide additional plugins and merges them with any existing `plugins`, working for object, promise, and function config forms.
>
> Updates the CLI entrypoints and build to ship `define-config` for both ESM and CommonJS (emitting `define-config.cjs`), and adds thorough unit coverage for the new `lazy` behavior.
>
> Adjusts CI build steps so `vite-plus`/`vite-plus-cli` TypeScript builds run earlier, updates the repo `vite.config.ts` to use `defineConfig`, and makes small workspace/lint script tweaks.
>
> <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 2f8417b. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments