From 6c9265c5295eba2a198074332c56cd97defc8d45 Mon Sep 17 00:00:00 2001 From: fasttian Date: Sat, 2 Apr 2022 04:05:34 +0000 Subject: [PATCH] update docs/tutorial/migration-to-vue3.md. --- docs/tutorial/migration-to-vue3.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/tutorial/migration-to-vue3.md b/docs/tutorial/migration-to-vue3.md index 518d40884..2d242c2cc 100644 --- a/docs/tutorial/migration-to-vue3.md +++ b/docs/tutorial/migration-to-vue3.md @@ -413,4 +413,16 @@ - vue3 支持的手机版本最低到多少? > vue3 支持的范围是:Android > 4.4, ios >= 10 - - vue3 nvue 暂不支持 recycle-list 组件 \ No newline at end of file + - vue3 nvue 暂不支持 recycle-list 组件 + + - vue3 在 h5 平台发行时,为了优化包体积大小,会默认启动摇树,仅打包明确使用的api。如果要关闭摇树,可以在manifest.json中配置: + + ```json + "h5": { + "optimization": { + "treeShaking": { + "enable": false + } + } + } + ``` \ No newline at end of file -- GitLab