Skip to content

Change decoratorsBeforeExport default to false#8113

Merged
nicolo-ribaudo merged 2 commits intobabel:masterfrom
nicolo-ribaudo:decorators-remove-before-export
Jun 4, 2018
Merged

Change decoratorsBeforeExport default to false#8113
nicolo-ribaudo merged 2 commits intobabel:masterfrom
nicolo-ribaudo:decorators-remove-before-export

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
Member

@nicolo-ribaudo nicolo-ribaudo commented Jun 4, 2018

Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change? 👍
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR
Any Dependency Changes?
License MIT

Ref: #7976 (comment) (cc @diervo)

I also asked to Daniel, and he said that this option could be removed but

I am not 100% sure, we will have to confirm, but it could always be added back

Instead of removing the option, this PR changes the default value to false.

"Using the export keyword between a decorator and a class is not allowed. " +
"Please use `export @dec class` instead, or set the " +
"'decoratorsBeforeExport' option to true.",
"Please use `export @dec class` instead.",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Since it looks like that the propoal is going to change, I removed the suggestion of using that option.

@nicolo-ribaudo nicolo-ribaudo added PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release pkg: parser Spec: Decorators pkg: generator labels Jun 4, 2018
@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Jun 4, 2018

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

@nicolo-ribaudo nicolo-ribaudo merged commit 6349118 into babel:master Jun 4, 2018
@nicolo-ribaudo nicolo-ribaudo deleted the decorators-remove-before-export branch June 4, 2018 19:12
storyn26383 pushed a commit to UniSharp/babel that referenced this pull request Aug 6, 2018
@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 pkg: generator pkg: parser PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release Spec: Decorators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants