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'))