我尝试使用babel 5.x样式,但有extra
选择,但是它不起作用。
Plugins can specify options. You can do so in your config by wrapping it in an array and providing a options object. For example:
{
"plugins": [
["transform-async-to-module-method", {
module: 'bluebird',
method: 'coroutine'
}]
]
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.