Few bug fixes and some nice features this release!
New features
Honor browserlist options via config/env vars (#211)
Thanks to @ankeetmaini browserlist options are now honored! This means if you have one set in your package json, browserlistrc file, or environment variables, it will be picked up! That's potential for big savings from reducing the amount of autoprefixing needed.
Bug fixes
Fix interpolations that are delimited by spaces being picked up as suffixes (#209)
There was a bug where some interpolations were breaking our CSS! This is fixed now - so the following code will work as expected.
import '@compiled/css-in-js';
import React from 'react';
const gridSize = () => 8;
const HORIZONTAL_SPACING = `${gridSize() / 2}px`;
<div css={{
padding: `0 ${HORIZONTAL_SPACING}`,
color: 'red',
}}>hello world</div>
Fix not working with Babel Flow (#214)
Before when using Compiled with Babel Flow types it would blow up. Now it should be smooth sailing to reach that pinnacle of compiled goodness!