"plugins":["transform-async-generator-functions"] } Via CLI babel --plugins transform-async-generator-functions script.js Via Node API require("babel-core").transform("code",{ plugins:["transform-async-generator-functions"] }); References ...
This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead. Turn async generator functions into ES2015 generatorsbabel-plugin readme The compiler for writing next generation JavaScript. Su...
Turn async functions into ES2015 generators See our website@babel/plugin-transform-async-to-generatorfor more information. Install Using npm: npm install --save-dev @babel/plugin-transform-async-to-generator or using yarn: yarn add @babel/plugin-transform-async-to-generator --dev ...
eval: impossible to support without deep hooks into the runtime Async generator functions: not implemented or planned Function.name: rewrite pass removes function name instrumentation new AsyncFunction(...): impossible to support without shipping babel and the plugin in the output...
@babel/plugin-proposal-async-generator-functions: ^7.20.7 => 7.19.0 @babel/plugin-transform-function-name: 7.25.1 => 7.25.1 @babel/preset-env: 7.15.8 => 7.15.8 @babel/template: 7.18.10 => 7.18.10 @babel/traverse: 7.19.0 => 7.19.0 ...
"transform-async-to-generator": require("@babel/plugin-transform-async-to-generator"), "proposal-async-generator-functions": require("@babel/plugin-proposal-async-generator-functions"), "proposal-json-strings": require("@babel/plugin-proposal-json-strings"), ...
"@babel/helper-remap-async-to-generator" "^7.22.5" "@babel/plugin-transform-block-scoped-functions@^7.22.5": version "7.22.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz#27978075bfaeb9fa586d3...
代码语言:javascript 复制 { "plugins": [ ["transform-async-to-module-method", { "module": "bluebird", "method": "coroutine" }] ] } Preset 的配置选项工作原理与 plugin 完全相同: 代码语言:javascript 复制 { "presets": [ ["es2015", { "loose": true, "modules": false }] ] } ...
babel-helper-remap-async-to-generator "^6.24.1" babel-plugin-syntax-async-functions "^6.8.0" babel-runtime "^6.22.0" babel-plugin-transform-es2015-arrow-functions@^6.22.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel...
kernel-functions-generator– This project contains a code generator that will automatically convert native functions into endpoints. For the remainder of this walkthrough, we'll be working in theazure-functionsproject since that is where we'll be adding our native functions and settings for the pl...