v0.13.8
errors and warnings / bundling

errors and warnings / bundling / E6003

E6003 error

Unknown minification pass name

area
bundling (x6xxx)
fails the build
yes

A level in minify-levels lists a pass that doesn't exist. The passes are strip-comments, strip-whitespace, simplify, compact, shorten-literals, rename-locals, rename-private and dedupe-strings; the message suggests the closest name. Correct the spelling, or build the level on a preset with extends (strip, compact, rename, max).

Example

× failswowlua.jsonjson
{    "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" },    "flavors": { "camelot": {} },    "minify-levels": { "readable": { "passes": ["strip-comment"] } }}
✓ compileswowlua.jsonjson
{    "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" },    "flavors": { "camelot": {} },    "minify-levels": { "readable": { "passes": ["strip-comments"] } }}

The compiler reports it like this:

error[E6003]: unknown minification pass `strip-comment`
  ┌─ wowlua.json:4:49
  │
4 │     "minify-levels": { "readable": { "passes": ["strip-comment"] } }
  │                                                 ^^^^^^^^^^^^^^^ unknown pass
  │
  = help: did you mean `strip-comments`?
codemessage
W6010An addon-site target (CurseForge, Wago, WoWInterface) publishes minified code (Blizzard AddOn policy: code must not be hidden or obfuscated)

Offline

terminal
$ wowlua explain E6003
E6003 (error): Unknown minification pass name

source on GitHub ↗