Menu

Do not pretty-print, lint-fix, or re-minify MeowShield output
πŸ“°

Do not pretty-print, lint-fix, or re-minify MeowShield output

DEV Community: javascriptΒ·VEILVMΒ·14 days ago
#fjywE8vU
#devtojavascript#devto#dev#protected#file
Long article (808 words) β€” no AI summary yet.
Reading 0:00
15s threshold

A MeowShield-protected file is not a normal source artifact. It is the output of a transform you chose, with a shape that later tools may not understand. The instinct to "clean it up" is strong: run Prettier so the diff looks tidy, run ESLint with --fix , send it through Terser "one more time" to recover a few bytes, or paste it into an editor that helpfully rewrites quotes and line breaks. Those tools were built for human-written JavaScript. They can change, or simply break, the file you just protected.

I help promote MeowShield. The rule I would put in the repo is: once MeowShield has produced a file, that file is frozen. You may upload it, hash it, and serve it. You may not format it, lint-fix it, or pack it again.

Why a second pass is tempting

The output can look noisy. Identifiers are renamed, constants may be split, control flow may be less linear, and a stronger level can look unlike the module you reviewed in the pull request.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.