News for hackers. Stuff that matters.
Re:Babel 6 – useless by default by hzoo on Sunday March 27, 2016 @11:33PM (#11372580)
I left a comment on the site - but try https://gist.github.com/rauchg/5b032c2c2166e4e36713#file-pac...

npm i -D babel-cli babel-preset-es2015 babel-preset-stage-0 babel-plugin-transform-runtime

echo "export default async function requireFromTwitter (id) {}" > index.js

echo '{ "presets": ["es2015","stage-0"], "plugins": ["transform-runtime"] }' > .babelrc

./node_modules/.bin/babel-node index.js

Re:Babel 6 – useless by default by andrewstuart on Monday March 28, 2016 @12:17AM (#11372704)
Thank you it now works. I appreciate your help.

What I like about your solution here is that is proves installation correctness in an absolutely minimalist way.

If you made one of these for every Babel plugin then life would be a whole lot easier for people trying to work out if they have correctly configured the plugin.

Assuming of course your solutions are in a highly visible place that is obviously current and up to date.

Re:Babel 6 – useless by default by andrewstuart on Sunday March 27, 2016 @11:35PM (#11372587)
That page has a comment that says "Mandatory disclaimer: this is not serious and not safe."
Re:Babel 6 – useless by default by hzoo on Sunday March 27, 2016 @11:37PM (#11372591)
Haha sorry the code itself is a joke right - I just mean the setup in the package.json (I posted it above)

FYI: in reference to https://twitter.com/rauchg/status/712799807073419264