[babel 8] Remove support for the 2018-09 decorators proposal#12712
[babel 8] Remove support for the 2018-09 decorators proposal#12712nicolo-ribaudo merged 10 commits intobabel:mainfrom
2018-09 decorators proposal#12712Conversation
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/52369/ |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit faf85ff:
|
There was a problem hiding this comment.
We should also remove decoratorsBeforeExport from @babel/standalone.
EDIT by @nicolo-ribaudo: the new proposal version still supports this option
1d99d03 to
cd4d22d
Compare
fa70f22 to
8093d87
Compare
940e6de to
70963b0
Compare
70963b0 to
faf85ff
Compare
|
Just curious, when will work begin on an implementation of the latest decorators proposal? Or is it still not stable enough yet to be worth doing that at this point? |
|
I'm in contact with the proposal authors, and it looks like it's becoming stable enough that we can implement it in the next months. |
|
For now, Is there any progress on stage 2 ? |
|
We are working on it at #14004 |
faf85ff to
7b7fd25
Compare
2018-09 decorators proposal
04d0c3a to
083c58a
Compare
53c7543 to
b4c6551
Compare
|
The CI failure looks valid, I'll investigate. |
b4c6551 to
2cca925
Compare
|
CI failure fixed! |
17e1e3b to
54dd997
Compare
|
Rebased, this is ready for review! |
68c71a5 to
f849a44
Compare
f849a44 to
112c49f
Compare
112c49f to
220e638
Compare
|
Rebased again |
| " requires a 'decoratorsBeforeExport' option, whose value must be a boolean.", | ||
| ); | ||
| if (version === "2021-12") { | ||
| decoratorsBeforeExport = false; |
There was a problem hiding this comment.
Does it mean we can remove the decoratorsBeforeExport generator option in Babel 8?
There was a problem hiding this comment.
This PR still keeps the decoratorsBeforeExport option but makes it default to false, I think I can just remove it given the proposal is now stage 3.
|
@JLHwung I removed |
7be1083 to
197415b
Compare
197415b to
b847696
Compare
BABEL_8_BREAKINGflagThis PR completely removes support for the second decorators proposal (the one with the big runtime code).
I'm not removing support for
legacydecorators because many JS libraries depend on them.Please review this PR with whitespace diff disabled, since different parts have been indented one level more (because of the
if (BABEL_8_BREAKING) {statements).