Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set plugins correctly in babel 7.x #118

Open
a1234321606 opened this issue May 17, 2021 · 1 comment
Open

How to set plugins correctly in babel 7.x #118

a1234321606 opened this issue May 17, 2021 · 1 comment

Comments

@a1234321606
Copy link

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?

@nooop3
Copy link

nooop3 commented Oct 31, 2022

There are my settings for the babel 7x:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants