We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const { x, ...y } = foo();
{ "dependencies": { "babel-plugin-transform-object-rest-spread": "^6.19.0", "babel-cli": "^6.18.0" }, "scripts": { "build": "babel --plugins transform-object-rest-spread src.js > out.js" } }
const _ref = foo(); const { x } = _ref; const y = _objectWithoutProperties(_ref, ["x"]);
const { x } = foo(); const y = _objectWithoutProperties(foo(), ["x"]);
It also does something crazy for this code 😜 ... c gets hoisted out of the arrow function and then the above bug duplicates the entire thing:
c
in:
const { a } = foo(({ b, ...c }) => { console.log(b, c); });
out:
const { a } = foo(({ b }) => { console.log(b, c); }); const c = _objectWithoutProperties(foo(({ b }) => { console.log(b, c); }), ["b"]);
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Input Code
Babel Configuration (.babelrc, package.json, cli command)
Expected Behavior
Current Behavior
Context
Your Environment
It also does something crazy for this code 😜 ...
c
gets hoisted out of the arrow function and then the above bug duplicates the entire thing:in:
out:
The text was updated successfully, but these errors were encountered: