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
Add docs for 2023-01
decorators
#2715
Add docs for 2023-01
decorators
#2715
Conversation
✅ Deploy Preview for babel ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
I will add this in the repl. By the way, the current repl, the decorator only works when ref #2677 |
| `v7.19.0` | Added support for `version: "2022-03"` | | ||
| `v7.17.0` | Added the `version` option with support for `"2021-12"`, `"2018-09"` and `"legacy"` | | ||
</details> | ||
|
||
### `version` | ||
|
||
`"2022-03"`, `"2021-12"`, `"2018-09"` or `"legacy"`. Defaults to `"2018-09"`. | ||
`"2023-01"`, `"2022-03"`, `"2021-12"`, `"2018-09"` or `"legacy"`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is version
a required option now? If so it would be a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just ["@babel/plugin-proposal-decorators"]
has always been invalid. "version"
has always been required, except if "decoratorsBeforeExports"
was set. Since most people will not need to set it now, it's confusing to say that "version"
has a default value (however, this behavior is still mentioned a few lines below).
Co-authored-by: Brian Ng <bng412@gmail.com>
4fbc3e2
to
0950223
Compare
2023-01
decorators
Docs for babel/babel#15405