PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.16k stars 352 forks source link

[RFC] Automatically remove console.log on prod build #732

Closed AaronMBMorse closed 1 year ago

AaronMBMorse commented 1 year ago

How do you envision this feature/change to look/work like?

When productions extensions are build it will automatically remove console.log statements.

What is the purpose of this change/feature? Why?

Prevent development console.logs from ending up in the production extension.

(OPTIONAL) Example implementations

No response

(OPTIONAL) Contribution

Verify canary release

Code of Conduct

louisgv commented 1 year ago

Duplicate of #542

AaronMBMorse commented 1 year ago

My mistake @louisgv glad it already on the list

augusdin commented 8 months ago

Sorry, but the console still exists after building with version 0.83.0. Is there any configuration that needs to be added during the build to resolve this issue?

@louisgv