issues
search
PlasmoHQ
/
plasmo
🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.32k
stars
358
forks
source link
[BUG] The build did not use tree-shaking, and unused code was also packaged
#904
Open
Kcium
opened
7 months ago
Kcium
commented
7 months ago
What happened?
As shown in the following figure, there are two enumeration values in the constants file.
The
ABC
enumeration is referenced in background.ts.
However, the
EFG
enumeration value will also be present in the file after the build is built.
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution
[ ] I would like to fix this BUG via a PR
Code of Conduct
[X] I agree to follow this project's Code of Conduct
[X] I checked the
current issues
for duplicate problems.
What happened?
ABC
enumeration is referenced in background.ts.EFG
enumeration value will also be present in the file after the build is built.Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution
Code of Conduct