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
> babel.transform('var x = { y: function y() {} }', { presets: ['babili'] }).code 'var x={y:function(){}};' > babel.transform('var x = { y: function y() {} }', { presets: ['babili', 'es2015'] }).code '"use strict";var x={y:function y(){}};'
Why did we leave y in the 2nd case?
y
The text was updated successfully, but these errors were encountered:
@kangax I will take it :)
Sorry, something went wrong.
The problem here is..
babel-plugin-transform-es2015-function-name plugin in the es2015 preset adds the function name again to the output.
Ahh.. ok so this works for me. This is a non-issue then.
> require('babel-core').transform('var x = { y: function y() {} }', { presets: ['es2015', 'babili'], passPerPreset: true }).code;
run DCE on program exit (fix babel#289)
67611fd
@kangax i sent a PR anyway to fix this issue.
run DCE on program exit (fix #289) (#292)
48635c4
No branches or pull requests
Why did we leave
y
in the 2nd case?The text was updated successfully, but these errors were encountered: