Skip to content

Commit 3ae060e

Browse files
sirtimidclaude
andcommitted
fix(kernel-browser-runtime): add stripBase to string target fallback in static copy
Aligns the dead-code string-target branch with the object entries and with extension/omnium-gatherum configs, preventing a subtle breakage if a string target is re-added later. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6880eb4 commit 3ae060e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/kernel-browser-runtime/vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ export default defineConfig(({ mode }) => {
103103
jsTrustedPrelude({ trustedPreludes }),
104104
viteStaticCopy({
105105
targets: staticCopyTargets.map((src) =>
106-
typeof src === 'string' ? { src, dest: './' } : src,
106+
typeof src === 'string'
107+
? { src, dest: './', rename: { stripBase: true } }
108+
: src,
107109
),
108110
watch: { reloadPageOnChange: true },
109111
silent: isDev,

0 commit comments

Comments
 (0)