Closed
Description
TypeScript before transform:
declare const styled: any;
const ValueCalc = styled.div \`
height: calc(var(--line-height) - 5px);
width: calc(100% - 5px);
\`;
TypeScript after transform:
declare const styled: any;
const ValueCalc = styled.div \`height:calc(var(--line-height)- 5px);width:calc(100% - 5px);\`;
There is no problem when using only the calc
method, but there is a bug when combined with the var
method. Browser can't parse missing spaces before '-'