Skip to content

Commit

Permalink
docs: correct glob import as example (#12907)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Apr 19, 2023
1 parent 3679bd7 commit ef89ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/features.md
Expand Up @@ -351,7 +351,7 @@ const modules = {
`import.meta.glob` also supports importing files as strings (similar to [Importing Asset as String](https://vitejs.dev/guide/assets.html#importing-asset-as-string)) with the [Import Reflection](https://github.com/tc39/proposal-import-reflection) syntax:

```js
const modules = import.meta.glob('./dir/*.js', { as: 'raw' })
const modules = import.meta.glob('./dir/*.js', { as: 'raw', eager: true })
```

The above will be transformed into the following:
Expand Down

0 comments on commit ef89ca6

Please sign in to comment.