GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(vite-plus): support lazy field in vite-plus config by Brooooooklyn · Pull Request #526 · voidzero-dev/vite-plus

Conversation

@Brooooooklyn

@Brooooooklyn Brooooooklyn commented Feb 1, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

Written by Cursor Bugbot for commit 2f8417b. This will update automatically on new commits. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI review requested due to automatic review settings February 1, 2026 10:11
@Brooooooklyn Graphite App

Brooooooklyn commented Feb 1, 2026

Copy link
Copy Markdown
Member Author
  • feat(vite-plus): support lazy field in vite-plus config #526 Graphite 👈 (View in Graphite)
  • main

This stack of pull requests is managed by Graphite. Learn more about stacking.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot started reviewing on behalf of Brooooooklyn February 1, 2026 10:11
View session
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Feb 1, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ccdd0d83ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/cli/src/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI reviewed Feb 1, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for a lazy field in the vite-plus configuration to enable lazy loading of plugins. The PR modifies the defineConfig function to intercept configurations with a lazy field, execute the lazy loader, and merge the resulting plugins with any existing plugins before passing the config to the underlying vite/vitest configuration system.

Changes:

  • Modified vite.config.ts to use the new defineConfig function instead of type assertion
  • Updated pnpm-workspace.yaml with formatting improvements and added @vitejs/plugin-react to the catalog
  • Implemented lazy plugin loading support in packages/cli/src/index.ts with a custom defineConfig wrapper

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
vite.config.ts Updated to use defineConfig function call instead of type assertion to leverage the new lazy loading feature
pnpm-workspace.yaml Formatting improvements (quote normalization, whitespace consistency), added @vitejs/plugin-react dependency, and alphabetized patchedDependencies entries
packages/cli/src/index.ts Added lazy field to UserConfig interface and implemented custom defineConfig wrapper to handle lazy plugin loading

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/cli/src/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/cli/src/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/cli/src/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/cli/src/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Feb 1, 2026
View reviewed changes
Comment thread packages/cli/src/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Brooooooklyn
feat(vite-plus): support lazy field in vite-plus config
5380304
@Brooooooklyn
Brooooooklyn force-pushed the 02-01-feat_vite-plus_support_lazy_field_in_vite-plus_config branch from ccdd0d8 to 5380304 Compare February 1, 2026 12:38
@Brooooooklyn
remove --type-check becuase we already have tsgo check
b820717
cursor[bot]
cursor Bot reviewed Feb 2, 2026
View reviewed changes
Comment thread packages/cli/src/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

fengmk2
fengmk2 approved these changes Feb 2, 2026
View reviewed changes
Brooooooklyn added 2 commits February 3, 2026 12:06
@Brooooooklyn
add more test
3f9317a
@Brooooooklyn
fix cjs
b7caa5f
cursor[bot]
cursor Bot reviewed Feb 3, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 4 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/cli/build.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/cli/src/define-config.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/cli/src/define-config.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/cli/src/index.cts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Brooooooklyn added 2 commits February 3, 2026 14:07
@Brooooooklyn
fix build
bd2eb0b
@Brooooooklyn
fix flag
2f8417b
@Brooooooklyn Graphite App

Brooooooklyn commented Feb 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Merge activity

  • Feb 3, 7:19 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 3, 7:19 AM UTC: @Brooooooklyn merged this pull request with Graphite.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Brooooooklyn
Brooooooklyn merged commit a21216e into main Feb 3, 2026
32 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Brooooooklyn
Brooooooklyn deleted the 02-01-feat_vite-plus_support_lazy_field_in_vite-plus_config branch February 3, 2026 07:19
wan9chi added a commit that referenced this pull request Jul 15, 2026
@wan9chi @claude
chore: bump vite-task to 4003f65 (#2167)
8ea4145
Bumps the `vite-task` git dependency from `cb580c2` to `4003f65`.

## Changes

The delta is entirely internal `fspy` (file-access tracking)
shared-memory work — no user-facing CLI flags, config fields, or
behavior changes, so no docs updates were needed.

- **fix(fspy):** use `memfd` for Linux shared memory — automatic
file-access tracking on Linux now works in containers and Kubernetes
runners with limited `/dev/shm` space
([#523](voidzero-dev/vite-task#523),
[#353](voidzero-dev/vite-task#353))
- **perf(fspy):** use sparse Windows shared memory — Windows file-access
tracking now uses sparse temporary backing files where supported,
avoiding upfront allocation of the full backing file on disk
([#524](voidzero-dev/vite-task#524))
- **refactor(fspy):** own macOS shared-memory mapping
([#526](voidzero-dev/vite-task#526))
- **docs/test(fspy):** document shared-memory facade ownership semantics
([#521](voidzero-dev/vite-task#521)); reproduce
constrained dev shm failure
([#522](voidzero-dev/vite-task#522))

The lockfile change reflects this refactor: `fspy` now pulls in `memfd`
and drops `shared_memory`.

## Validation

- `cargo check --workspace` passes — the new `vite-task` compiles
cleanly, confirming no breaking changes on the consuming side (including
`vite_cli_snapshots`, which compiles against vite-task's PTY/snapshot
test crates).
- vite-plus crate tests pass. (One pre-existing, environment-specific
stack overflow in `vite_global_cli`'s
`unknown_argument_detected_with_pass_as_value_hint` clap-parsing test
reproduces identically on `main` and is unrelated to this bump.)
- PTY snapshot output is unchanged by the bump; the remaining local
snapshot diffs in this sandbox are all environmental (no built
`packages/cli/dist`, plus registry TLS/network restrictions), left to
CI, which builds the JS CLI and has registry access.

## Changelog

Full vite-task CHANGELOG diff:
``https://github.com/voidzero-dev/vite-task/compare/cb580c214bb2314fc1f633a3812782c9b3a1d956...4003f65a3e5e3d957ff81b157e85e6ee41cc59fc#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed``

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---
_Generated by [Claude
Code](https://claude.ai/code/session_01YERo1yECf81w37US2Gqnow)_

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments
@fengmk2 fengmk2 fengmk2 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Brooooooklyn @fengmk2
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.