linkedin / opticss

A CSS Optimizer
BSD 2-Clause "Simplified" License
715 stars 24 forks source link

feat(css-blocks): Cache ParsedSelector results from parseSelector() #13

Closed amiller-gh closed 6 years ago

amiller-gh commented 6 years ago

This simplifies selector parsing by eliminating the need for Blocks to implement SelectorFactory and enables dryer css-blocks BlockTree code. ParsedSelector results are cached by unique string selector passed to parseSelector(), preventing duplicate work.

amiller-gh commented 6 years ago

Yup, ignore everything in the PR 😅