rtsao / babel-preset-es2015-node

:tropical_fish: Babel preset for the necessary es2015 plugins for your version of node
MIT License
89 stars 7 forks source link

Duplicate plugin for node4 #4

Closed sebakerckhof closed 8 years ago

sebakerckhof commented 8 years ago

https://github.com/rtsao/babel-preset-es2015-node/blob/node4/index.js#L6

and

https://github.com/rtsao/babel-preset-es2015-node/blob/node4/index.js#L7

sebakerckhof commented 8 years ago

And I think it misses http://babeljs.io/docs/plugins/transform-es2015-spread/ according to https://nodejs.org/en/docs/es6/

kintel commented 8 years ago

I can confirm that this preset is broken for node 4. Adding the spread transform fixes it:

    require("babel-plugin-transform-es2015-spread"),
rtsao commented 8 years ago

Wow, nice catch! This must have been due to some oversight when merging... Sorry for the delay fixing this, somehow I missed this issue on GitHub. I've published v4.0.1 which resolves the problem.