Skip to content

Commit

Permalink
docs: fix glob import paths to use base directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hakshu25 committed Nov 2, 2024
1 parent 7f0f5e7 commit 1cd16f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ const moduleBase = import.meta.glob('**/*.js', {
```ts
// code produced by vite:
const moduleBase = {
'./dir/foo.js': () => import('./dir/foo.js'),
'./dir/bar.js': () => import('./dir/bar.js'),
'./dir/foo.js': () => import('./base/dir/foo.js'),
'./dir/bar.js': () => import('./base/dir/bar.js'),
}
```

Expand Down

0 comments on commit 1cd16f3

Please sign in to comment.