vuejs / vue-component-compiler

Compile a single file Vue component into a CommonJS module.
MIT License
342 stars 52 forks source link

Add validation to assemble #31

Closed eddyerburgh closed 6 years ago

eddyerburgh commented 6 years ago

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.