New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: pass optionLoc when validating plugin object #10402
Conversation
}; | ||
|
||
expect(() => loadConfig(opts)).toThrow( | ||
/\.inhertis must be a function, or undefined/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the current message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quotes from #9877
"Assertion failure: Unknown type undefined" error instead of the proper error; "inherits must be a function, or undefined"
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/11498/ |
Construct option loc and pass it to the validator so that it can print helpful messages on validation error.