From 67176e9363ac96b57e53e9b239c213ea60f2f3cf Mon Sep 17 00:00:00 2001 From: Jinbao1001 Date: Tue, 10 Dec 2024 13:47:08 +0800 Subject: [PATCH] fix: builtin path (#2235) --- src/loaders/markdown/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loaders/markdown/index.ts b/src/loaders/markdown/index.ts index 349810dc5..cf0be4624 100644 --- a/src/loaders/markdown/index.ts +++ b/src/loaders/markdown/index.ts @@ -104,7 +104,7 @@ function emitDefault( }); // import all builtin components, may be used by markdown content return `${Object.values(opts.builtins) - .map((item) => `import ${item.specifier} from '${item.source}';`) + .map((item) => `import ${item.specifier} from '${winPath(item.source)}';`) .join('\n')} ${dependencies .filter((dep: string) => dep.endsWith('.md'))