Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: log options validations errors in CLI
Ajv is using doT to compile validation logic. There is minimal overhead validating an object against a pre-compiled schema. In case of the CLI, options will be validated once by the CLI engine and the second time by API. I prefer to explicitly handle error checking rather than relying on an error getting thrown by the API engine. API needs to retain “validationErrors” object nevertheless to enable debugging when using webpack programmatically.
- Loading branch information