Evan Jacobs
Evan Jacobs
@leebyron have you tested this change in a normal cjs project?
@jshado1 Something like this might be useful: https://github.com/zspecza/common-tags#stripindent
I’d recommend doing an || ‘’ in places where you think the content might be undefined to work around this. We can add some handling in the library as well....
Can keep it open, thanks!
I played with this originally but most people didn't seem to like how it worked and I got some issues around it.
You'd want to use `React.Children.toArray(props.children).some` https://reactjs.org/docs/react-api.html
Try removing it and see if the tests pass, heh.
This is definitely something I'm open to adding if you'd like to make an RFC or open a PR!
Adding extensibility is definitely possible - need to think on what the best/least confusing implementation strategy would be.
I haven’t worked on this project in a while… I’d be open to a PR that exposes an `extendRules(rules, helpers) => rules` callback to append new rules to the existing...