-
-
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 jsesc options support #8143
add jsesc options support #8143
Conversation
vincentdchan
commented
Jun 11, 2018
Q | A |
---|---|
Fixed Issues? | Fixes #8124 |
Patch: Bug Fix? | No |
Major: Breaking Change? | No |
Minor: New Feature? | Yes |
Tests Added + Pass? | No |
Documentation PR | No |
Any Dependency Changes? | No |
License | MIT |
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/8350/ |
jsescOption: { | ||
quotes: "double", | ||
wrap: true, | ||
...(opts.jsescOption || {}), |
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.
|| {}
isn't needed; object spread works with null
/undefined
/false
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.
fixed
I realize that with this change we can just remove the Instead users can do Also I realize this could be plural haha.. |
@hzoo Of cause it can, but it would be a breaking change, I don't know if babel can accept it? |