v1.3.1 — Fix WXT scaffold (wxt/sandbox removed upstream)
[1.3.1] - 2026-06-13
Fixed
- WXT scaffold produced a project that wouldn't install or build. WXT
0.20.26 removed thewxt/sandboxexport, but the scaffold and the
wxt-frameworkskill docs still importeddefineBackground/
defineContentScriptfromwxt/sandbox. On a fresh scaffold,pnpm install(via thewxt preparepostinstall) andpnpm buildboth 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 subpathswxt/utils/define-backgroundand
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 lint0 errors. - Pinned WXT defensively.
scaffold-wxt.shfloated"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