Skip to content

Commit 4714cd3

Browse files
authored
docs: 在 import-components.md 中添加提升所有 TinyVue 相关依赖的配置示例,解决pnpm工程需要安装多个子包的问题 (#3377)
1 parent 644750a commit 4714cd3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/sites/demos/pc/webdoc/import-components.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ module.exports = {
7373
}
7474
```
7575

76+
或者,你也可以在项目根目录的 `.npmrc` 文件中添加以下配置来提升所有 TinyVue 相关的依赖:
77+
78+
```ini
79+
# 提升所有@opentiny开头的包
80+
public-hoist-pattern[]=@opentiny/*
81+
```
82+
7683
想了解更多自动按需导入的信息,请参考:
7784
[unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)
7885
[unplugin-auto-import](https://github.com/antfu/unplugin-auto-import)

0 commit comments

Comments
 (0)