Skip to content

Commit

Permalink
docs(cn): Update features.md
Browse files Browse the repository at this point in the history
  • Loading branch information
waynzh authored May 17, 2023
2 parents 23f1361 + 924daf7 commit d409993
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

1 comment on commit d409993

@vercel
Copy link

@vercel vercel bot commented on d409993 May 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cn-vitejs-dev – ./

cn-vitejs-dev-git-main-vuejs.vercel.app
docs-cn.vercel.app
cn-vitejs-dev-vuejs.vercel.app
cn.vitejs.dev

Please sign in to comment.