Package Exports
- fast-async
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fast-async) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fast-async
'fast-async' is a Babel plugin that implements the ES7 keywords async and await using syntax transformation
at compile-time rather than generators.
The main reason for using 'fast-async' as opposed to Babel's default implementation of async/await is performance (https://github.com/MatAtBread/nodent#performance) - it's 3-4 times faster in a browser, and as much as 10 times faster on a mobile browsers, mainly due to avoiding generators (and therefore regenerator).
There's a simple test (that just makes sure the plugin works and generates code that runs). More complete test coverage is included with nodent.
fast-async (via nodent) can generate code suitable for use in early Browsers with no Promise support (as well as no generators), and has various options for turning sourcemaps on/off and controlling code generation, hwoever, I've not found a simple API for passing options to Babel plugins, so for now it simply chooses some defaults.
Install
npm install fast-asyncTest
From the installation directory (e.g. node_modules/fast-async):
npm testUseful Links
Online performance checkers: