Skip to content

Commit d6e906b

Browse files
authored
fix(shiki): add import 'default' since it is needed with new query: '?raw' (#880)
1 parent e0865aa commit d6e906b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/website/src/components/code-snippet/code-snippet.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Highlight } from '../highlight/highlight';
1111
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1212
const codeSnippets: any = import.meta.glob('/src/routes/docs/**/**/snippets/*', {
1313
query: '?raw',
14+
import: 'default',
1415
eager: isDev ? false : true,
1516
});
1617

apps/website/src/components/showcase/component-imports.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const rawComponents: Record<string, any> = import.meta.glob(
1919
'/src/routes/docs/**/**/examples/*.tsx',
2020
{
2121
query: '?raw',
22+
import: 'default',
2223
eager: isDev ? false : true,
2324
},
2425
);

0 commit comments

Comments
 (0)