How to disable babel transform-regenerator completely

后端 未结 1 1332
夕颜
夕颜 2021-02-12 13:03

I\'m looking for a way to completely disable generator functions transform with babel. With babel 5 there was a blacklist option, but it seems that with babel 6 the

相关标签:
1条回答
  • 2021-02-12 13:34

    Have you tried "exclude"? Like:

    {
       "presets": [
          ["env", {
             "exclude": ["transform-regenerator"]
          }]
       ]
    }
    

    Please see https://babeljs.io/docs/plugins/preset-env/#optionsexclude for details.

    0 讨论(0)
提交回复
热议问题