Component libraries that uses this plugin and apis, used to copy it and change it to allow this functionality. they also made it worse by creating the context for each transformation.
now it's possible to share the context and transform only the selector ast
const context = createForceStatesContext(dataPrefix, namespaceMapping); // create once
mutateWithForceStates(parseCssSelector('.x:hover'), context); // use in the process
Component libraries that uses this plugin and apis, used to copy it and change it to allow this functionality. they also made it worse by creating the context for each transformation.
now it's possible to share the context and transform only the selector ast