PlasmoHQ / plasmo

🧩 The Browser Extension Framework

Home Page:https://www.plasmo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] The build did not use tree-shaking, and unused code was also packaged

Kcium opened this issue · comments

What happened?

  1. As shown in the following figure, there are two enumeration values in the constants file.
  2. The ABC enumeration is referenced in background.ts.
  3. However, the EFG enumeration value will also be present in the file after the build is built.
image image image

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

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.