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 — defineConfig drops own properties of Promise plugins (breaks Vike discovery) · Issue #3152 · voidzero-dev/vite-plus

defineConfig drops own properties of Promise plugins (breaks Vike discovery) #3152

New issue
Copy link
New issue
Copy link
Closed
Bug
#3154
Closed
defineConfig drops own properties of Promise plugins (breaks Vike discovery)#3152
Bug
#3154
Copy link
Assignees
liangmiQwQ
Labels
bugSomething isn't working

Description

@ravilochancsw
ravilochancsw
opened on Oct 20, 2026
Issue body actions

What

withoutVitePlusTestPlugins maps plugin instanceof Promise to plugin.then(withoutVitePlusTestPlugins). .then() creates a new promise that does not carry the original promise's own properties.

Impact

vike() (vike/[email protected]) returns a Promise carrying _vikeVitePluginOptions as an own property — verified present on the promise itself and absent from all 41 resolved plugins. Vike discovers its plugin by scanning the raw user config for that field, so after vp's re-wrap the field is gone: vike build warns Omitting Vike's Vite plugin and then fails inside @brillout/vite-plugin-server-entry (resolveConfig).

Current workaround is a sync marker object that copies the field (awaiting first is not an option — it destroys the marker; a lazy async factory reintroduces the same failure since it yields [Promise]).

Ask

Preserve own props across the re-wrap (e.g. copy them onto the settled wrapper), or document that Promise plugins must be prop-free so downstream authors know to use a marker.

Repro

// vite.config.ts (loaded through vp's defineConfig)
import { defineConfig } from 'vite-plus';
import vike from 'vike/plugin';
export default defineConfig({ plugins: [vike()] });

vike build fails as above. The identical config through vite's own defineConfig builds fine.

Versions

vite-plus 1.3.0, vike 0.4.268, vite-plus-core 1.3.0

Activity

  1. liangmiQwQ
    added
    bugSomething isn't working
    on Oct 20, 2026
  2. liangmiQwQ
    added the
    Bug
    issue type on Oct 20, 2026
  3. liangmiQwQ
    self-assigned this
    on Oct 20, 2026
  4. fengmk2
    closed this as completedin #3154on Oct 21, 2026
  5. fengmk2
    added a commit that references this issue on Oct 21, 2026

    fix(cli): keep own properties of promise plugins in defineConfig (voi…

    This issue will close once commit f8d9da8 is merged into the 'main' branch.
    f8d9da8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @liangmiQwQ
    liangmiQwQ

Labels

bugSomething isn't working

Type

Bug

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.