From 6adcbf360e889fd732640da6ffecbc80c949255b Mon Sep 17 00:00:00 2001 From: harpsealjs Date: Tue, 9 Apr 2024 17:54:45 +0800 Subject: [PATCH] docs: enable new tree shaking by default (#6158) --- website/docs/en/config/experiments.mdx | 3 ++- website/docs/zh/config/experiments.mdx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/website/docs/en/config/experiments.mdx b/website/docs/en/config/experiments.mdx index 81b527253e3..6afdee89375 100644 --- a/website/docs/en/config/experiments.mdx +++ b/website/docs/en/config/experiments.mdx @@ -291,7 +291,8 @@ module.exports = { - **Type:** `boolean` -- **Default Value:** `false` +- **Introduced in Version:** v0.4.2 +- **Enabled by Default in Version:** v0.6.0 This feature enables the new treeshaking implementation the same as webpack, which would generate more efficient and smaller code diff --git a/website/docs/zh/config/experiments.mdx b/website/docs/zh/config/experiments.mdx index dfd6be412d2..187e408ce4c 100644 --- a/website/docs/zh/config/experiments.mdx +++ b/website/docs/zh/config/experiments.mdx @@ -299,7 +299,8 @@ module.exports = { - **类型:** `boolean` -- **默认值:** `false` +- **引入版本:** v0.4.2 +- **默认开启版本:** v0.6.0 该功能启用了与 webpack 相同的新摇树优化实现,可以生成更高效和更小的代码。