Skip to content

v1.3.1 — Fix WXT scaffold (wxt/sandbox removed upstream)

Choose a tag to compare

@harry-harish harry-harish released this 13 Jun 07:17
· 33 commits to main since this release

[1.3.1] - 2026-06-13

Fixed

  • WXT scaffold produced a project that wouldn't install or build. WXT
    0.20.26 removed the wxt/sandbox export, but the scaffold and the
    wxt-framework skill docs still imported defineBackground /
    defineContentScript from wxt/sandbox. On a fresh scaffold, pnpm install (via the wxt prepare postinstall) and pnpm build both failed
    with "./sandbox" is not exported. Fixed across all 8 references
    (scaffold-wxt.sh, wxt-framework/SKILL.md, references/entrypoints.md,
    references/messaging.md, plasmo-framework/references/csui.md) to the
    current subpaths wxt/utils/define-background and
    wxt/utils/define-content-script. Verified end-to-end: scaffold → pnpm install (rc 0) → pnpm build (rc 0) → real .output/chrome-mv3/manifest.json
    web-ext lint 0 errors.
  • Pinned WXT defensively. scaffold-wxt.sh floated "wxt": "^0.20.0"
    (which is how it drifted onto the breaking 0.20.26); changed to
    "wxt": "~0.20.26" (patch-only) so a future minor can't silently break
    the scaffold again. Matches the project's reproducible-builds default.

If you scaffolded a WXT project with v1.3.0 or earlier and hit "./sandbox" is not exported on pnpm install/pnpm build, update to v1.3.1 and re-scaffold, or change your entrypoint imports to wxt/utils/define-background and wxt/utils/define-content-script.

Install:

/plugin marketplace add anthropics/claude-plugins-community
/plugin install chrome-extension-builder@claude-community