Skip to content

apps/vscode: VSIX packaging fails on main — bare "immer" import remains in extension.js #3252

Description

@matthiasgoergens

Problem

pnpm -C apps/vscode run build && pnpm -C apps/vscode run package:platform fails on current main (checked at d1a46db):

VSIX packaging failed: Bare runtime dependency "immer" remains in extension/dist/extension.js.

The built dist/extension.js keeps a top-level import { ... } from "immer", which scripts/vsix-verify.mjs rejects.

Cause

Suggested fix

Add immer to alwaysBundle in apps/vscode/tsdown.config.ts:

alwaysBundle: [/^@moonshot-ai\//, "zod", "immer"],

With that one-line change, build + package:platform succeed locally (all platform targets verified).

Worth checking whether CI exercises package:platform on main — the 0.7.2 release presumably packaged from a state before this combination, so a release cut from current main may hit this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions