[英]How to define plugin settings in babel 6?
我嘗試使用babel 5.x樣式,但有extra
選擇,但是它不起作用。
插件可以指定選項。 您可以在配置中通過將其包裝在數組中並提供options對象來實現。 例如:
{
"plugins": [
["transform-async-to-module-method", {
module: 'bluebird',
method: 'coroutine'
}]
]
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.