Skip to content

Commit

Permalink
feat(docs): update examples loading procedure to latest vite 5 specs
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Feb 20, 2024
1 parent a98612e commit 0313911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/build/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function devLoad (id) {
if (id.startsWith(resolvedIdPrefix) === true) {
const query = `'/src/examples/${ id.substring(id.indexOf(':') + 1) }/*.vue'`
return `export const code = import.meta.glob(${ query }, { eager: true })` +
`\nexport const source = import.meta.glob(${ query }, { as: 'raw', eager: true })`
`\nexport const source = import.meta.glob(${ query }, { query: '?raw', import: 'default', eager: true })`
}
}

Expand Down

0 comments on commit 0313911

Please sign in to comment.