โ† All skills
Tencent SkillHub ยท Developer Tools

Bun

Build with Bun runtime avoiding Node.js compatibility traps, bundler pitfalls, and package manager gotchas.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Build with Bun runtime avoiding Node.js compatibility traps, bundler pitfalls, and package manager gotchas.

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, bundler.md, node-compat.md, packages.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 8 sections Open source page

When to Use

User needs Bun expertise โ€” fast JavaScript/TypeScript runtime, bundler, and package manager. Agent handles migration from Node, bundling for web/server, and troubleshooting compatibility issues.

Quick Reference

TopicFileNode.js API differencesnode-compat.mdBundler configurationbundler.mdPackage managementpackages.md

Runtime Compatibility Traps

process.nextTick timing differs from Node โ€” race conditions appear that didn't exist before, use queueMicrotask for cross-runtime code __dirname and __filename don't exist in ESM โ€” use import.meta.dir and import.meta.file, forgetting causes ReferenceError fs.watch misses events that Node catches โ€” file watcher scripts silently miss changes, add polling fallback child_process.spawn options subset โ€” some stdio configurations silently ignored, test subprocess code explicitly cluster module not supported โ€” app crashes immediately if code uses cluster, must refactor to workers vm module partial โ€” sandboxed code may escape or behave differently, security implications

Bundler Traps

--target=browser strips Node APIs silently โ€” build succeeds, then runtime crashes on fs, path, etc. --splitting requires --format=esm โ€” error message doesn't mention this, just fails cryptically Everything bundled by default โ€” server code bundles node_modules, use --external:package for server deps Tree-shaking assumes no side effects โ€” code with side effects may be removed, add "sideEffects": false to package.json or lose code CSS imports work differently than webpack โ€” url() paths resolve wrong, test in actual browser --minify mangles names aggressively โ€” debugging production crashes is harder, use --minify-syntax for safer minification

Package Manager Traps

bun.lockb is binary format โ€” can't diff, can't merge, Git conflicts require delete and regenerate Peer dependencies auto-installed unlike npm โ€” version conflicts appear silently, different versions than npm would pick bun install resolves differently than npm โ€” "works on my machine" when teammate uses npm Workspaces link: protocol behaves differently โ€” imports from workspace packages may fail bun add modifies package.json formatting โ€” unwanted diff noise in commits No npm audit equivalent โ€” security vulnerabilities not surfaced automatically

TypeScript Traps

Bun runs TypeScript directly without tsc โ€” type errors don't stop execution, bugs ship to production Type-only imports may be kept โ€” bundle size larger than expected tsconfig.json paths work differently โ€” imports that worked in Node+tsc may fail Decorators experimental โ€” behavior may differ from tsc, especially with legacy decorators

Testing Traps

bun test has different assertion API โ€” tests written for Jest need adaptation Mock timing differs โ€” tests that pass in Jest may fail or flake No native coverage like c8/nyc โ€” need different tooling Snapshot format incompatible with Jest โ€” can't share snapshots between runners

Hot Reload Traps

bun --hot doesn't reload native modules โ€” changes require restart State preserved across reloads โ€” bugs from stale state hard to debug WebSocket connections not re-established โ€” clients appear connected but dead

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Docs
  • SKILL.md Primary doc
  • bundler.md Docs
  • node-compat.md Docs
  • packages.md Docs