FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(env): support bun as a devEngines runtime by BlankParticle · Pull Request #2568 · voidzero-dev/vite-plus · GitHub

feat(env): support bun as a devEngines runtime - #2568

Open
BlankParticle wants to merge 1 commit into
voidzero-dev:mainfrom
BlankParticle:feat/bun-dev-engines-runtime
Open

feat(env): support bun as a devEngines runtime#2568
BlankParticle wants to merge 1 commit into
voidzero-dev:mainfrom
BlankParticle:feat/bun-dev-engines-runtime

Conversation

BlankParticle commented Aug 26, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

We have a repo that uses bun for running scripts and somethings along with node in parallel since we aim to support both runtimes, we use pnpm as the package manager. So I have attempted to write something like this in package.json

  "devEngines": {
    "packageManager": { "name": "pnpm", "version": "10.20.0", "onFail": "download" },
    "runtime": [
      { "name": "bun", "version": "1.3.13", "onFail": "download" },
      { "name": "node", "version": "24.5.0", "onFail": "download" }
    ]
  }

this resolves pnpm as the package manager, and node version as runtime, but doesn't put the correct bun version on PATH. I expected this since Vite+ says it doesn't want to manage runtimes, but still allows to use bun as package manager. I asked in Voidzero discord and @TheAlexLichter confirmed too.
I still want to migrate our repo to Vite+, so I took a stab at this with help of Claude Fable 5, and the implementation came out at 350 lines, the mechanism for managing/downloading bun already exists, only the dev engines had to be hooked up. This doesn't mean Vite+ does everything through bun, it only makes it so the correct version of bun is available in path and the scripts in package.json and invoking bun from the shell downloads and uses correct bun version.

I have cleaned up the code and opened this PR on suggestion of @TheAlexLichter so we can have a discussion on this, the behaviour in this PR is what I exactly need. I can tweak how its implemented based on feedback.

Discord Thread https://discord.com/channels/1475973262193459293/1540305126269521941

netlify Bot commented Aug 26, 2026
edited
Loading

Copy link
Copy Markdown

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit ff31404
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a8ecff9d0f65100081f39b4
😎 Deploy Preview https://deploy-preview-2568--viteplus-preview.netlify.app
📱 Preview on mobile Toggle QR Code...



Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

BlankParticle force-pushed the feat/bun-dev-engines-runtime branch from 1d7c777 to ff31404 Compare August 26, 2026 11:37

fengmk2 commented Aug 27, 2026

Copy link
Copy Markdown
Member

We currently don’t have plans to support JS runtimes other than Node.js. Bun is currently supported as a package manager.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL