Skip to content

Commit e0865aa

Browse files
authored
chore(import.meta.glob): change as: 'raw' to query: '?raw' (#879)
1 parent 52ec544 commit e0865aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Highlight } from '../highlight/highlight';
1010

1111
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1212
const codeSnippets: any = import.meta.glob('/src/routes/docs/**/**/snippets/*', {
13-
as: 'raw',
13+
query: '?raw',
1414
eager: isDev ? false : true,
1515
});
1616

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metaGlobComponents: Record<string, any> = import.meta.glob(
1818
export const rawComponents: Record<string, any> = import.meta.glob(
1919
'/src/routes/docs/**/**/examples/*.tsx',
2020
{
21-
as: 'raw',
21+
query: '?raw',
2222
eager: isDev ? false : true,
2323
},
2424
);

0 commit comments

Comments
 (0)