Closed
Description
π Search Terms
"long time", "stuck build"
π Version & Regression Information
- Occur on all versions.
β― Playground Link
No response
π» Code
export type HtmlAnchorTarget = '_self' | '_blank' | '_parent' | '_top';
type CssAbsoluteUnit = 'cm' | 'mm' | 'in' | 'px' | 'pt' | 'pc';
type CssRelativeUnit = 'em' | 'ex' | 'ch' | 'rem' | 'vw' | 'vh' | 'vmin' | 'vmax' | '%';
export type CssLength = `${number}${CssAbsoluteUnit | CssRelativeUnit}`;
export type CssMargin = CssLength | `${CssLength} ${CssLength}` | `${CssLength} ${CssLength} ${CssLength} ${CssLength}`;
π Actual behavior
the build time grow exponential because of the amount of permutations we have and it Stuck the IDE completely and make the TSC to take 4-5x more build time.
π Expected behavior
run faster
Additional information about the issue
just change the line:
export type CssMargin = CssLength | `${CssLength} ${CssLength}` | `${CssLength} ${CssLength} ${CssLength} ${CssLength}`;
to:
export type CssMargin = CssLength | string;
and all run fast.