lisonge / vite-plugin-monkey

A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat
MIT License
1.31k stars 70 forks source link

minified build are unusable #56

Closed Malix-Labs closed 1 year ago

Malix-Labs commented 1 year ago

Discussed in #55

Caused by https://github.com/Tampermonkey/tampermonkey/issues/1567

lisonge commented 1 year ago

fix it in v3.0.0-alpha.2

Malix-Labs commented 1 year ago

fix it in v3.0.0-alpha.2

By https://github.com/lisonge/vite-plugin-monkey/commit/394500def6b6e8c85afb4e8b343b7d8b989d1de0

Malix-Labs commented 1 year ago

fix it in v3.0.0-alpha.2

How did you fixed it?

lisonge commented 1 year ago

How did you fixed it?

get it by Identifier instead of MemberExpression, global Identifier can not be minified

lisonge commented 1 year ago

v3.0.1

Malix-Labs commented 1 year ago

https://github.com/Tampermonkey/tampermonkey/issues/1567#issuecomment-1466829927