How to disable babel transform-regenerator complet

2020-06-30 12:06发布

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 there is no way to do that (at least I did not find any documentation on the official website).

My current configuration

  "presets": [
  "plugins": [

Disabling it like described here did not help.

Any ideas?

Fickle 薄情
2楼-- · 2020-06-30 12:28

Have you tried "exclude"? Like:

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

Please see for details.

登录 后发表回答