02 Runtime Shims banner
codeaashu codeaashu

02 Runtime Shims

Development community

Description

# Prompt 02: Runtime Shims for `bun:bundle` Feature Flags & `MACRO` Globals ## Context You are working in `/workspaces/claude-code`. This is the Claude Code CLI source. It was built to run under **Bun's bundler** which provides two build-time features that don't exist at runtime: ### 1. `bun:bundle` feature flags Throughout the code you'll find: ```ts import { feature } from 'bun:bundle' if (feature('BRIDGE_MODE')) { ... } ``` Bun's bundler replaces `feature('X')` with `true`/`false` at build

Installation

Installs to ~/.claude/skills/codeaashu-claude-code-02-runtime-shims/SKILL.md

Terminal
mkdir -p ~/.claude/skills/codeaashu-claude-code-02-runtime-shims && curl -fsSL https://raw.githubusercontent.com/codeaashu/claude-code/HEAD/prompts/02-runtime-shims.md -o ~/.claude/skills/codeaashu-claude-code-02-runtime-shims/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository