Closed cly closed 8 years ago
Hi @cly, I cannot reproduce this. I tested with
var styles = cssInJS({
foo: {
width: 80
}
});
which transforms to
var styles = {
foo: "test-styles-foo"
};
and outputs
.test-styles-foo {
width: 80px;
}
This is all expected.
Maybe you're using an outdated version of Babel somewhere else. Babel's changelog states that NumberLiteral
was renamed to NumericLiteral
in version 6.0.18.
Aha I'm on 6.0.15.. thanks for a breaking change babel and not doing semver properly -__-.
Cool, that's helps a lot.
width: 80
used to work now it throws this error.