Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function taggedStyled() {
const strs = arguments[0];
if (!isTemplateLiteral(strs)) {
return styled.apply(null, arguments);
}
const tokens = processCSS.apply(null, arguments);
if (styles) {
styled();
}
set([styles, tokens]);
return styled;
}
function carriedStyled() {
const strs = arguments[0];
styles = null;
if (!isTemplateLiteral(strs)) {
styles = create(Array.prototype.slice.call(arguments));
set([styles]);
return taggedStyled;
}
return taggedStyled.apply(null, arguments);
}