diff --git a/docs/guide/features.md b/docs/guide/features.md index a892182678fc1b..f5538442d605f7 100644 --- a/docs/guide/features.md +++ b/docs/guide/features.md @@ -298,10 +298,10 @@ const modules = { } ``` -`import.meta.glob` and `import.meta.globEager` also support importing files as strings, similar to [Importing Asset as String](https://vitejs.dev/guide/assets.html#importing-asset-as-string). Here, we use the [Import Assertions](https://github.com/tc39/proposal-import-assertions#synopsis) syntax to import. +`import.meta.glob` and `import.meta.globEager` also support 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', { assert: { type: 'raw' } }) +const modules = import.meta.glob('./dir/*.js', { as 'raw' }) ``` The above will be transformed into the following: