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

Update syntax-decorators options #7938

Merged

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented May 15, 2018

  • Add decoratorsBeforeExport to the syntax plugin
  • Require legacy: true, like in the transform plugin
Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR
Any Dependency Changes?
License MIT

@nicolo-ribaudo nicolo-ribaudo added PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release PR: New Feature 🚀 A type of pull request used for our changelog categories Spec: Decorators labels May 15, 2018

### `decoratorsBeforeExport`

`boolean`, defaults to `false`.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to change the default value after the tc39 meeting

@nicolo-ribaudo nicolo-ribaudo force-pushed the decorators-before-export-syntax branch from c445aff to e3cdb7c Compare May 15, 2018 19:50
@babel-bot
Copy link
Collaborator

babel-bot commented May 15, 2018

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/8245/

@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/7976/

Copy link
Member

@existentialism existentialism left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not uber important, but it might be useful to denote why the exportBefore option exists.

This option allows developers to experimet both the possible syntaxes. This will
allow collecting an informed feedback from the community, which will help to
decide which the final syntax should be.
[tc39/proposal-decorators#69](https://github.com/tc39/proposal-decorators/issues/69)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@littledan Is this description ok?

Copy link
Member

@existentialism existentialism May 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe:

This option was added to help tc39 collect feedback from the community by allowing experimentation with both possible syntaxes.

For more information, check out: tc39/proposal-decorators#69

@nicolo-ribaudo nicolo-ribaudo added this to the Babel 7 RC milestone May 28, 2018
@nicolo-ribaudo nicolo-ribaudo force-pushed the decorators-before-export-syntax branch from da8e262 to d181894 Compare May 30, 2018 19:31
@nicolo-ribaudo nicolo-ribaudo force-pushed the decorators-before-export-syntax branch from d181894 to 638d365 Compare May 30, 2018 19:48
@nicolo-ribaudo nicolo-ribaudo merged commit cb17f07 into babel:master May 30, 2018
@nicolo-ribaudo nicolo-ribaudo deleted the decorators-before-export-syntax branch May 30, 2018 20:00
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release PR: New Feature 🚀 A type of pull request used for our changelog categories Spec: Decorators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants