-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add opts.message option to code frames #7243
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/6674/ |
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.
Looks nice. Could you please update the documentation with the new option?
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.
👍
Added some docs |
* Add opts.message option to code frames * Fix for missing loc.start in code-frame * Add docs
This adds the ability to add inline messages to code frames.
With line and column:
With line:
With start and end line and column:
With start and end line: