You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be awesome if there was a way to install a version of streamline which referenced babel-preset-node6 rather than babel-preset-es2015. This obviously be for Node 6.x installations, of course.
The text was updated successfully, but these errors were encountered:
The bad news is that it won't work 😢 . The problem is that the streamline plugin only knows about ES5 AST nodes so it needs to run after babel-plugin-es2015. It generates invalid code for ES6 AST nodes (for example class methods with _ parameter).
It would be possible to enhance the plugin to transform ES6 AST nodes directly but this requires some work.
It would be awesome if there was a way to install a version of streamline which referenced
babel-preset-node6
rather thanbabel-preset-es2015
. This obviously be for Node 6.x installations, of course.The text was updated successfully, but these errors were encountered: