Skip to content

Commit

Permalink
docs: fix glob import example to treat as base instead of prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
hakshu25 committed Nov 6, 2024
1 parent 76dc01e commit 500cb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ You can also use the `base` option to provide base path for the imports:
```ts twoslash
import 'vite/client'
// ---cut---
const moduleBase = import.meta.glob('**/*.js', {
const moduleBase = import.meta.glob('./**/*.js', {
base: './base',
})
```
Expand Down

0 comments on commit 500cb14

Please sign in to comment.