Skip to content

Commit 421604a

Browse files
committed
docs(README): add more about tree-shaking
1 parent 3ce9159 commit 421604a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export var MyEnum;
6868

6969
which is verbose. Not only can't you take advantage of enum inlining, but it also wastes a lot of bytes. That's the reason why this transform is made.
7070

71+
Although keys of object literals can't be tree-shaken by webpack, however, the exported object literals have no side effects like enums do. If one of your code-splitting chunks does not use it, it will be completely erased.
72+
7173
# Installation
7274

7375
```sh

0 commit comments

Comments
 (0)