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 `