Skip to content

Conversation

@lvl99
Copy link

@lvl99 lvl99 commented Feb 10, 2019

Q                       A
Fixed Issues? No
Patch: Bug Fix? No
Major: Breaking Change? No
Minor: New Feature? Added selectiveLoose option for babel-plugin-transform-destructuring
Tests Added + Pass? Yes
Documentation PR Link No
Any Dependency Changes? No
License MIT

I've added an extra option called selectiveLoose to babel-plugin-transform-destructuring which can accept an array of strings which represent property or function names to destructure from. Instead of having a global loose mode, selectiveLoose allows a user to target specific property/function names.

This was a solution based on a specification by @gaearon, further elucidated by this PR by @eivind88 and comment by @Pajn.

@babel-bot
Copy link
Collaborator

babel-bot commented Feb 10, 2019

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

@lvl99
Copy link
Author

lvl99 commented Feb 17, 2019

Have updated based on rubber ducking here: facebook/create-react-app#5997 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants