Added
StyleRegistry
now optionally accepts transformFn
Example:
const styleRegistry = new StyleRegistry(style => style.replace(/\s/g, ''));
styleRegistry.registerStyles('body { color: red; }')
console.log(styleRegistry.getCriticalCSS()) //-> body{color: red;}
// ...
Changed
Components don't throw any errors now.