Skip to content
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

Merged
merged 2 commits into from
Jun 11, 2018

Conversation

vincentdchan
Copy link
Contributor

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

@babel-bot
Copy link
Collaborator

babel-bot commented Jun 11, 2018

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/8350/

jsescOption: {
quotes: "double",
wrap: true,
...(opts.jsescOption || {}),
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@hzoo hzoo merged commit 3432792 into babel:master Jun 11, 2018
@hzoo hzoo added the PR: New Feature 🚀 A type of pull request used for our changelog categories label Jun 11, 2018
@hzoo
Copy link
Member

hzoo commented Jun 15, 2018

I realize that with this change we can just remove the jsonCompatibleStrings option?

Instead users can do { jsescOption: { json: true } }?

Also I realize this could be plural haha..

@vincentdchan
Copy link
Contributor Author

@hzoo Of cause it can, but it would be a breaking change, I don't know if babel can accept it?

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: New Feature 🚀 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: jsesc option for babel-generator
4 participants