diff --git a/docs/tutorial/migration-to-vue3.md b/docs/tutorial/migration-to-vue3.md index 518d40884b08fb600645bfae78a514a16af4fb89..2d242c2cc540d8235440f6a4ef1a648f1f21d3fc 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