3 ms·
As an aside, I'm still stuck, having spent the whole day trying to get Babel's async/await to work. Can someone point me to a web page that includes set of ins
by andrewstuart 11y ago
As an aside, I'm still stuck, having spent the whole day trying to get Babel's async/await to work. Can someone point me to a web page that includes set of instructions that actually work for configuring async/await?
This is the reason I wrote the post and I'd really like to get back to actually programming.
- hzoo 11y agoI left a comment on the site - but try https://gist.github.com/rauchg/5b032c2c2166e4e36713#file-package-json 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
- andrewstuart 11y agoThat page has a comment that says "Mandatory disclaimer: this is not serious and not safe."
- hzoo 11y agoHaha 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 https://twitter.com/rauchg/status/712799807073419264
- andrewstuart 11y agoThank 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.