Skip to content

Commit 3593f4b

Browse files
committed
Fix VSCode not displaying errors due to monorepo handling of mdsvex layout. Related: pngwn/MDsveX#556
1 parent a9566b6 commit 3593f4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/layerchart/mdsvex.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
import { fileURLToPath } from 'node:url';
2+
import { dirname } from 'node:path';
13
import slug from 'rehype-slug';
24

35
export default {
46
extensions: ['.md', '.svx'],
5-
layout: './src/lib/docs/Layout.svelte',
7+
// https://github.com/pngwn/MDsveX/issues/556
8+
layout: dirname(fileURLToPath(import.meta.url)) + '/src/lib/docs/Layout.svelte',
69
rehypePlugins: [slug],
710
// highlight: false
811
};

0 commit comments

Comments
 (0)