Skip to content

Commit

Permalink
Update features.md
Browse files Browse the repository at this point in the history
use relative path
  • Loading branch information
bigsnowballhehe authored May 11, 2023
1 parent 23f1361 commit 924daf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ const modules = {

### Glob 导入形式 {#glob-import-as}

`import.meta.glob` 都支持以字符串形式导入文件,类似于 [以字符串形式导入资源](https://vitejs.dev/guide/assets.html#importing-asset-as-string)。在这里,我们使用了 [Import Reflection](https://github.com/tc39/proposal-import-reflection) 语法对导入进行断言:
`import.meta.glob` 都支持以字符串形式导入文件,类似于 [以字符串形式导入资源](./assets.html#importing-asset-as-string)。在这里,我们使用了 [Import Reflection](https://github.com/tc39/proposal-import-reflection) 语法对导入进行断言:

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

0 comments on commit 924daf7

Please sign in to comment.