koa-swagger-decorator icon indicating copy to clipboard operation
koa-swagger-decorator copied to clipboard

How to set plugins correctly in babel 7.x

Open a1234321606 opened this issue 3 years ago • 1 comments

The plugins setting is not work in .babelrc file. My babel version is 7.x and yours is 6.x. How to set the plugins in babel 7.x?

a1234321606 avatar May 17 '21 08:05 a1234321606

There are my settings for the babel 7x:

{
  "presets": [
    [
      "@babel/preset-env",
      {
        "targets": {
          "node": "current"
        }
      }
    ]
  ],
  "plugins": [
    ["@babel/plugin-proposal-decorators", { "legacy": true }]
  ]
}

nooop3 avatar Oct 31 '22 14:10 nooop3