diff --git a/core/parcel-config/package.json b/core/parcel-config/package.json index 162229adf..5c68b8b9f 100644 --- a/core/parcel-config/package.json +++ b/core/parcel-config/package.json @@ -1,6 +1,6 @@ { "name": "@plasmohq/parcel-config", - "version": "0.40.7", + "version": "0.40.8", "license": "MIT", "repository": { "type": "git", diff --git a/core/parcel-transformer-manifest/package.json b/core/parcel-transformer-manifest/package.json index 3ea6833f0..f6f32d281 100644 --- a/core/parcel-transformer-manifest/package.json +++ b/core/parcel-transformer-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@plasmohq/parcel-transformer-manifest", - "version": "0.18.0", + "version": "0.19.0", "description": "Plasmo Parcel Transformer for Web Extension Manifest", "files": [ "dist", diff --git a/core/parcel-transformer-manifest/src/handle-sandboxes.ts b/core/parcel-transformer-manifest/src/handle-sandboxes.ts index c5c384910..7fec2ce5c 100644 --- a/core/parcel-transformer-manifest/src/handle-sandboxes.ts +++ b/core/parcel-transformer-manifest/src/handle-sandboxes.ts @@ -12,9 +12,13 @@ export async function handleSandboxes() { return } - const srcPaths = ["sandboxes", "sandbox.ts", "sandbox.tsx"].map((file) => - resolve(srcDir, file) - ) + const srcPaths = [ + "sandboxes", + "sandbox.ts", + "sandbox.tsx", + "sandbox.svelte", + "sandbox.vue" + ].map((file) => resolve(srcDir, file)) const dotSandboxesDir = resolve(dotPlasmoDir, "sandboxes") @@ -22,6 +26,8 @@ export async function handleSandboxes() { srcSandboxesDirExists, srcSandboxTsFileExists, srcSandboxTsxFileExists, + srcSandboxSvelteFileExists, + srcSandboxVueFileExists, dotSandboxesDirExists ] = await Promise.all( [...srcPaths, dotSandboxesDir].map((p) => asset.fs.exists(p)) @@ -43,7 +49,12 @@ export async function handleSandboxes() { } } - const hasSandboxFile = srcSandboxTsFileExists || srcSandboxTsxFileExists + const hasSandboxFile = + srcSandboxTsFileExists || + srcSandboxTsxFileExists || + srcSandboxSvelteFileExists || + srcSandboxVueFileExists + if (!hasSandboxFile && sandboxPages.length === 0) { return } diff --git a/examples b/examples index 162f15787..d7533c6bf 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit 162f157879f6f3fc82be1f7dadac16ae15e43c17 +Subproject commit d7533c6bf817c64cd9c171bcded74cc09fea73fc