简体   繁体   中英

How to define plugin settings in babel 6?

我尝试使用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'
    }]
  ]
}

From https://github.com/babel/babel.github.io/pull/513

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM