bss
bss copied to clipboard
Unit interpolation fails in node
https://github.com/porsager/bss/blob/a1d6071838a0cc63d3c21cafb535d79d7b8fd5ed/lib/utils.js#L35 just noticed in a unit test that this line throws an exeption in node when calling bss like this
b({
backgroundColor: 'pink',
fontSize: 1.3 // <- no unit
})
while suprisingly seems to work fine
b({
backgroundColor: 'pink',
fontSize: '1.3px' // <- with unit
})
not really an issue, but may be helpful to remember in case you want to make it work in node down the line. Hence posting it here.
Ah yes.. I've got a local branch for version 2 (and some experiments) that includes SSR which handles this, I need to finish a project the coming week that needs SSR, so should see the light of day soon :)