We should validate input for assemble so that users can see what they need to pass. For example, if you don't pass styles you get Cannot read property 'some' of undefined.
Instead, we should validate the arguments and throw clear error messages, maybe using superstruct.
We should validate input for assemble so that users can see what they need to pass. For example, if you don't pass styles you get
Cannot read property 'some' of undefined
.Instead, we should validate the arguments and throw clear error messages, maybe using superstruct.