Skip to content

Commit

Permalink
fix(shiki): add import 'default' since it is needed with new query: '…
Browse files Browse the repository at this point in the history
…?raw' (#880)
  • Loading branch information
maiieul authored Jul 9, 2024
1 parent e0865aa commit d6e906b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/website/src/components/code-snippet/code-snippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Highlight } from '../highlight/highlight';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const codeSnippets: any = import.meta.glob('/src/routes/docs/**/**/snippets/*', {
query: '?raw',
import: 'default',
eager: isDev ? false : true,
});

Expand Down
1 change: 1 addition & 0 deletions apps/website/src/components/showcase/component-imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const rawComponents: Record<string, any> = import.meta.glob(
'/src/routes/docs/**/**/examples/*.tsx',
{
query: '?raw',
import: 'default',
eager: isDev ? false : true,
},
);

0 comments on commit d6e906b

Please sign in to comment.