Registry / web-framework / babel-plugin-fast-async

babel-plugin-fast-async

JSON →
library6.1.2jsnpmunverified

A Babel v6 plugin that transforms ES7 async/await syntax using fast synchronous transformation instead of generators/regenerator, achieving 3-4x performance improvements in browsers and Node, and up to 10x on mobile. Currently at v6.2.1, it uses the nodent library for compilation and supports options like Promise-based output, generator fallback, and runtime module imports. Requires nodent runtime unless using 'spec' mode with noRuntime. Released under MIT.

npm install babel-plugin-fast-async
INSTALL
IMPORT
SIG · BABEL-PLUGIN-FAST-
B
babel-plugin-fast-async
web-frameworkjavascriptv6.1.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
// .babelrc { "plugins": ["fast-async"] }
import fastAsync from 'fast-async'
This is a Babel plugin, not a runtime import. Use in Babel configuration (JSON, JS, etc.)
default
// No JavaScript import required; plugin applied via Babel config
const fastAsync = require('fast-async')
fast-async is not designed for direct JavaScript require/import. Only use in Babel configuration.
PluginFactory
// Programmatic Babel usage: const fastAsync = require('fast-async'); babel.transform(code, { plugins: [fastAsync] });
import { fastAsync } from 'fast-async'
When used programmatically, require the module as a function. Named export does not exist.

Minimal .babelrc to enable fast-async plugin for async/await transformation.

{ "plugins": ["fast-async"] }
Debug
Known issues
breakingBabel v6 only; does not support Babel v7+.
fix
Upgrade to Babel v7 and use @babel/plugin-transform-async-to-generator or similar.
affects: >=0.0.0
gotchaRuntime must be included manually for multi-file projects. Set runtimePattern for single include.
fix
Set 'runtimePattern' option to a regex matching one file, or use 'useRuntimeModule' for import.
affects: >=6.0.0
gotchaStack trace mapping disabled by default (dontMapStackTraces: true) as of v6.1.x.
fix
Set 'dontMapStackTraces: false' in env options if you need mapped stack traces.
affects: >=6.1.0
Errors
Common errors & fixes
Module not found: Can't resolve 'nodent'
nodent is a peer dependency but not installed.
fix
Run 'npm install nodent --save' alongside fast-async.
SyntaxError: Unexpected token function
Babel v7+ does not support fast-async; use built-in plugins.
fix
Use @babel/plugin-transform-async-to-generator instead of fast-async.
TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
Mixing ESM and CJS in compiled code; runtime conflict.
fix
Ensure consistent module system; set Babel sourceType appropriately.
Upgrade
Version history
6.1.2latest on npm
Audit
Dependencies
nodentrequiredCore transformation engine for async/await to Promise or generator code.
Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
babel-plugin-fast-async — npm install babel-plugin-fast-async · libregistry