A minimal demo of async/await working in a browser in April 2018.
Run the browserify build and start a simple file server:
npm i
npm start
Then open your browser:
open "http://localhost:8080"
See package.json
and .babelrc
for configuration details.
- babel-core: Babel compiler core.
- babel-plugin-transform-async-to-generator: Turn async functions into ES2015 generators
- babel-plugin-transform-runtime: Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals
- babel-preset-env: A Babel preset for each environment.
- babelify: Babel browserify transform
- browserify: browser-side require() the node way
- http-server: A simple zero-configuration command-line http server
MIT