Not sure if it's necessary to allow for any type of node to be transformed, but we could provide an API that allows devs to register transforms for certain types of nodes, e.g.:
Rbexy.config.transforms.register(HTMLAttr, ComponentProp) do |node, context|
# mutate node to your pleasing
end
Example use case: intercept class="..." class names and apply CSS Modules scoping to them.
Not sure if it's necessary to allow for any type of node to be transformed, but we could provide an API that allows devs to register transforms for certain types of nodes, e.g.:
Example use case: intercept
class="..."
class names and apply CSS Modules scoping to them.