Microbundle: `--compress` option is broken since v0.7.0

Created on 23 Dec 2018  Â·  4Comments  Â·  Source: developit/microbundle

--compress option is parsed as a string but checked as a boolean, so it's not working anymore: everything is always minified.

Most helpful comment

yeah, you're supposed to use --no-compress but it's not really obvious

All 4 comments

Seems to be related to https://github.com/lukeed/sade/issues/21 . Sade doesn't seem to forward the required type information to the cli parser mri.

Fixed in 0.9.0. As suspected this issue was downstream in the dependency we use to parse the cli arguments. Note: you may need to clear node_modules and run npm install again because npm may have cached an older version of mri.

Hi here,

It seems broken again (for the same reason)…
I am using version 0.10.1.

option.compress is returning a string ('false').
Then, on line #538, options.compress !== false is always returning true…

Changing it to options.compress !== 'false', makes the build not compressed.

yeah, you're supposed to use --no-compress but it's not really obvious

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yaymukund picture yaymukund  Â·  4Comments

rdmurphy picture rdmurphy  Â·  3Comments

belozer picture belozer  Â·  3Comments

cowboyd picture cowboyd  Â·  3Comments

kuldeepkeshwar picture kuldeepkeshwar  Â·  4Comments