From bf73c12415fbaf4fa1324054ee8bae23c9a36a88 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Fri, 22 Nov 2024 14:16:04 +0100 Subject: [PATCH 1/2] remove @fs prefix from import paths in vite --- code/builders/builder-vite/src/codegen-importfn-script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/builders/builder-vite/src/codegen-importfn-script.ts b/code/builders/builder-vite/src/codegen-importfn-script.ts index 0853b0549628..7b17cbbc7e46 100644 --- a/code/builders/builder-vite/src/codegen-importfn-script.ts +++ b/code/builders/builder-vite/src/codegen-importfn-script.ts @@ -31,7 +31,7 @@ async function toImportFn(stories: string[]) { const objectEntries = stories.map((file) => { const relativePath = normalizePath(relative(process.cwd(), file)); - return ` '${toImportPath(relativePath)}': async () => import('/@fs/${file}')`; + return ` '${toImportPath(relativePath)}': async () => import('${file}')`; }); return ` From d977033a11cca5655467279574cb2c0844962ab0 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Fri, 22 Nov 2024 22:48:03 +0100 Subject: [PATCH 2/2] Empty commit