Skip to content

Commit ef89ca6

Browse files
authored
docs: correct glob import as example (#12907)
1 parent 3679bd7 commit ef89ca6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/guide/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ const modules = {
351351
`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:
352352

353353
```js
354-
const modules = import.meta.glob('./dir/*.js', { as: 'raw' })
354+
const modules = import.meta.glob('./dir/*.js', { as: 'raw', eager: true })
355355
```
356356

357357
The above will be transformed into the following:

0 commit comments

Comments
 (0)