File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,7 @@ export function f() {
3535
3636</td ></tr ></tbody ></table >
3737
38- ### Remove Dead Code
39-
40- > The core of tree-shaking. The execution is simulated to know which code is useless.
41- >
42- > And don't worry about the ` && true ` in the output, minifier will remove it.
38+ ### Dead Branch Elimination
4339
4440<table ><tbody ><tr ><td width =" 500px " > Input </td ><td width =" 500px " > Output </td ></tr ><tr >
4541<td valign =" top " >
@@ -84,8 +80,6 @@ g(false);
8480
8581### Object Property Mangling
8682
87- > This is beyond the scope of tree-shaking, we need a new name for this project 😇.
88-
8983<table ><tbody ><tr ><td width =" 500px " > Input </td ><td width =" 500px " > Output </td ></tr ><tr >
9084<td valign =" top " >
9185
@@ -117,8 +111,6 @@ export function main() {
117111
118112### Class Tree Shaking
119113
120- > One of the hardest but the coolest.
121-
122114<table ><tbody ><tr ><td width =" 500px " > Input </td ><td width =" 500px " > Output </td ></tr ><tr >
123115<td valign =" top " >
124116
You can’t perform that action at this time.
0 commit comments