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 — fix(core): resolve Rolldown bindings via platform packages by jong-kyung · Pull Request #2067 · voidzero-dev/vite-plus

Conversation

@jong-kyung

@jong-kyung jong-kyung commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #2054.

This updates @voidzero-dev/vite-plus-core release builds so bundled Rolldown no longer resolves native bindings through vite-plus/binding.

Instead, supported Rolldown native package specifiers are rewritten from:

@rolldown/binding-<platform>

to the matching Vite+ native platform package:

@voidzero-dev/vite-plus-<platform>

vite-plus/binding remains available as a compatibility export.

Why

With pnpm enable-global-virtual-store, core can run from pnpm's global store realpath. In that layout, core cannot
reliably resolve undeclared vite-plus/binding.

This avoids the circular package graph:

vite-plus -> @voidzero-dev/vite-plus-core -> vite-plus/binding

and makes core's native binding resolution use declared optional dependencies instead.

Changes

  • Document the new native binding resolution model in:
    • packages/cli/BUNDLING.md
    • packages/core/BUNDLING.md
  • Map CLI napi.targets to Vite+ native platform package names
  • Add the generated Vite+ native platform packages to core optionalDependencies
  • Rewrite only supported Rolldown native binding specifiers to declared Vite+ platform packages
    • unsupported/fallback Rolldown bindings such as WASI are left unchanged
  • Add tests for:
    • NAPI target -> platform package mapping
    • core optional dependency metadata
  • Pin core native optional dependency versions during release after native addons are published

Sorry, something went wrong.

Uh oh!

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

All reactions
jong-kyung added 5 commits July 6, 2026 19:59
@jong-kyung
docs: document platform binding resolution
07f1387
@jong-kyung
test(core): map native platform packages
94aad06
@jong-kyung
fix(core): declare native platform packages
d7d86b2
@jong-kyung
fix(core): rewrite rolldown native packages
7081cb3
@jong-kyung
ci: refresh native package release versions
33d915d
@netlify

netlify Bot commented Jul 6, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

✅ Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit f5f08a0
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a59e291cc164400088f61d1
All reactions

Sorry, something went wrong.

Uh oh!

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

@jong-kyung jong-kyung self-assigned this Jul 6, 2026
@jong-kyung

jong-kyung commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

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

@jong-kyung
refactor(core): simplify native dependency generation
614f67b
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 6, 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: 33d915dd59

ℹ️ 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/core/package.json
}
},
"optionalDependencies": {
"@voidzero-dev/vite-plus-darwin-arm64": "0.2.2",

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 6, 2026

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.

P1 Badge Keep native optional deps in the version bump

When the release prep workflow bumps versions, it only rewrites the top-level version field in packages/core/package.json (.github/workflows/prepare_release.yml:55-56), leaving these newly added native optional dependency pins at the previous release. The new artifact test also requires each Vite+ native optional dependency to equal corePkgJson.version (packages/core/__tests__/build-artifacts.spec.ts:57), so the next release: v... PR will fail as soon as core is bumped unless the bump path updates these pins too.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions

@jong-kyung jong-kyung Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

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.

I'm not sure what the preferred fix is for this release-flow issue. I avoided updating these pins in prepare_release.yml because the new native packages are not published yet at that point, so resolving exact versions during release prep seemed unsafe.

@fengmk2 Could you advise which approach you'd prefer?

Sorry, something went wrong.

Uh oh!

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

All reactions

@fengmk2 fengmk2 Jul 8, 2026

Copy link
Copy Markdown
Member

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.

It shouldn't be added here. The napi binary dependency is automatically added by napi-rs/cli during the publishing process in packages/cli/publish-native-addons.ts, so it doesn't need to be depended on at the code level. However, currently it doesn't support automatically adding this dependency configuration to 2 packages. Need @Brooooooklyn to help review whether our approach is correct. I have a feeling something is wrong.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/core/package.json Resolved

Uh oh!

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

jong-kyung added 2 commits July 6, 2026 20:28
@jong-kyung
style: format binding resolution changes
0cdd0fe
@jong-kyung
test(tools): pack host native package locally
9a4307d
@jong-kyung

jong-kyung commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

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

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 6, 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: 9a4307d07a

ℹ️ 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/core/build.ts Resolved

Uh oh!

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

Comment thread packages/core/build.ts Resolved

Uh oh!

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

@jong-kyung
fix(core): preserve bundled rolldown version
ed47557
@jong-kyung

jong-kyung commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

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

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 6, 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: ed475572ba

ℹ️ 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/core/build.ts Resolved

Uh oh!

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

Comment thread packages/core/package.json Resolved

Uh oh!

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

@jong-kyung

jong-kyung commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

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

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 6, 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: cf5b76793b

ℹ️ 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/core/build.ts Resolved

Uh oh!

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

Comment thread packages/core/package.json Resolved

Uh oh!

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

@jong-kyung
fix(core): match single-quoted binding guards
9868852
@jong-kyung
jong-kyung force-pushed the fix/core-platform-binding-resolution branch from feff11d to 9868852 Compare July 6, 2026 12:40
@jong-kyung

jong-kyung commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

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

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 6, 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: 986885258c

ℹ️ 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/core/build.ts
Comment on lines 803 to +805
};

const { code, errors } = await format(destPkgPath, JSON.stringify(destPkg, null, 2) + '\n', {
destPkg.optionalDependencies = { ...destPkg.optionalDependencies };

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 6, 2026

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.

P1 Badge Update native deps during version bumps

When the next release PR is created, .github/workflows/prepare_release.yml only bumps the top-level version fields, leaving these newly hard-coded native optional dependency specs at the previous release. The CI build then runs mergePackageJson(), which rewrites them to destPkg.version, so the post-build dirty-tree check in .github/workflows/ci.yml fails; after merge, main would also keep @voidzero-dev/vite-plus-core out of sync with the native packages until the ephemeral publish step patches it. Please update the release-prep path (or stop source builds from rewriting these specs) so the committed package.json stays consistent across version bumps.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
jong-kyung and others added 3 commits July 7, 2026 09:27
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
adb2ca8
@jong-kyung
style: format binding resolution changes
7da14ed
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
8db6239
@jong-kyung
jong-kyung marked this pull request as ready for review July 7, 2026 02:36
@jong-kyung
jong-kyung marked this pull request as draft July 7, 2026 02:36
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
ed2773b
@jong-kyung
jong-kyung marked this pull request as ready for review July 7, 2026 04:57
@jong-kyung

jong-kyung commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

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

@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
fcfaca5
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 7, 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: fcfaca56bc

ℹ️ 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/core/build.ts Resolved

Uh oh!

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

@fengmk2

fengmk2 commented Jul 7, 2026

Copy link
Copy Markdown
Member

This change is a bit complex, so I won't merge it in this week's release. I'll review it after today's release is done.

jong-kyung reacted with heart emoji jong-kyung reacted with rocket emoji
All reactions
  • ❤️ 1 reaction
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

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

@jong-kyung

jong-kyung commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

This change is a bit complex, so I won't merge it in this week's release. I'll review it after today's release is done.

I agree. I’ll review and address your feedback when you take a look later.

All reactions

Sorry, something went wrong.

Uh oh!

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

jong-kyung and others added 4 commits July 7, 2026 14:52
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
b04bd10
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
735312b
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
e551cf8
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
1879811
@socket-security

socket-security Bot commented Jul 8, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​voidzero-dev/​vite-plus-darwin-arm64@​0.2.2531003999100
Addednpm/​@​voidzero-dev/​vite-plus-linux-arm64-gnu@​0.2.2531003999100
Addednpm/​@​voidzero-dev/​vite-plus-linux-x64-gnu@​0.2.2531003999100
Addednpm/​@​voidzero-dev/​vite-plus-win32-x64-msvc@​0.2.2531003999100
Addednpm/​@​voidzero-dev/​vite-plus-darwin-x64@​0.2.2511004099100
Addednpm/​@​voidzero-dev/​vite-plus-linux-arm64-musl@​0.2.2511004099100
Addednpm/​@​voidzero-dev/​vite-plus-linux-x64-musl@​0.2.2511004099100
Addednpm/​@​voidzero-dev/​vite-plus-win32-arm64-msvc@​0.2.2511004099100

View full report

All reactions

Sorry, something went wrong.

Uh oh!

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

jong-kyung and others added 12 commits July 8, 2026 17:43
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
0f26155
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
637386d
@fengmk2
Merge branch 'main' into fix/core-platform-binding-resolution
3d0b156
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
5004c2e
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
a9f30f7
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
8829649
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
3751a9d
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
fdbed44
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
e0b9779
Signed-off-by: JongKyung Lee  <[email protected]>
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
0e5dcd3
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
596fb5f
@jong-kyung
Merge branch 'main' into fix/core-platform-binding-resolution
f5f08a0
@fengmk2

fengmk2 commented Aug 3, 2026

Copy link
Copy Markdown
Member

@jong-kyung Let me take over this issue, I need to write a RFC first.

jong-kyung reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

@fengmk2 fengmk2 closed this Aug 3, 2026
@jong-kyung
jong-kyung deleted the fix/core-platform-binding-resolution branch August 3, 2026 22:24
@fengmk2 fengmk2 mentioned this pull request Aug 4, 2026
fix(core): resolve bundled Rolldown bindings via platform packages #2313
Merged
fengmk2 added a commit that referenced this pull request Aug 4, 2026
@fengmk2
docs: add RFC for core native binding resolution
c28c2f5
Release-built core resolves bundled Rolldown's native binding through
vite-plus/binding, an export of a package core never declares, which
breaks pnpm enable-global-virtual-store, Yarn PnP, and standalone core
installs. The RFC keeps the per-platform rewrite direction from PR #2067
but moves the platform optionalDependencies pins out of the committed
package.json and into the publish pipeline, mirroring how napi-rs
injects the same packages into vite-plus.
fengmk2 added a commit that referenced this pull request Aug 4, 2026
@fengmk2
docs: add RFC for core native binding resolution
eaf0a06
Release-built core resolves bundled Rolldown's native binding through
vite-plus/binding, an export of a package core never declares, which
breaks pnpm enable-global-virtual-store, Yarn PnP, and standalone core
installs. The RFC keeps the per-platform rewrite direction from PR #2067
but moves the platform optionalDependencies pins out of the committed
package.json and into the publish pipeline, mirroring how napi-rs
injects the same packages into vite-plus.
fengmk2 added a commit that referenced this pull request Aug 4, 2026
@fengmk2
docs: add RFC for core native binding resolution
d9dd44f
Release-built core resolves bundled Rolldown's native binding through
vite-plus/binding, an export of a package core never declares, which
breaks pnpm enable-global-virtual-store, Yarn PnP, and standalone core
installs. The RFC keeps the per-platform rewrite direction from PR #2067
but moves the platform optionalDependencies pins out of the committed
package.json and into the publish pipeline, mirroring how napi-rs
injects the same packages into vite-plus.
@ueberBrot ueberBrot mentioned this pull request Sep 2, 2026
Vite+ CLI cannot start in StackBlitz because its WASI binding is unavailable #2598
Open
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@fengmk2 fengmk2 Awaiting requested review from fengmk2

Uh oh!

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

Assignees

@jong-kyung jong-kyung

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Avoid circular binding resolution between vite-plus-core and vite-plus

Uh oh!

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

2 participants

@jong-kyung @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.