Fixes #806 - skip optimizing variable properties.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 4 Jan 2017 17:43:50 +0000 (18:43 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 4 Jan 2017 17:43:50 +0000 (18:43 +0100)
commitb013ab9ee8d29edbb602c8220ae419f2f1d5a2c2
treeafc79d288a5ba5e2b3ca1f04788972b08773993a
parent4fda5a8146dd0cccd8e62b3b2e0b2e14d53cb3c8
Fixes #806 - skip optimizing variable properties.

Why:

* So far it's impossible to find out real property values so
  breaking up shorthands into components doesn't work.
* In theory one could optimize cases where all component values
  are given and one of them is a variable, but it's an additional
  complexity probably not worth the hassle.
History.md
lib/optimizer/basic.js
lib/properties/optimizer.js
lib/properties/wrap-for-optimizing.js
test/optimizer/advanced-test.js
test/properties/wrap-for-optimizing-test.js