Skip to content

Commit

Permalink
docs: update docs/webpack/performance.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qiufeihong2018 committed Jun 4, 2024
1 parent 178943b commit 47fc2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/webpack/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ module: {

`Tree Shaking` 是一个术语,在计算机中表示消除死代码,依赖于`ES Module`的静态语法分析(不执行任何的代码,可以明确知道模块的依赖关系)

`webpack`实现`Trss shaking`有两种不同的方案:
`webpack`实现`Tree shaking`有两种不同的方案:

- usedExports:通过标记某些函数是否被使用,之后通过Terser来进行优化的
- sideEffects:跳过整个模块/文件,直接查看该文件是否有副作用
Expand Down

0 comments on commit 47fc2c4

Please sign in to comment.