Avoid removing class fields using flow in plugin-transform-flow-strip-types plugin#10120
Avoid removing class fields using flow in plugin-transform-flow-strip-types plugin#10120nicolo-ribaudo merged 3 commits intobabel:next-8-devfrom
plugin-transform-flow-strip-types plugin#10120Conversation
|
Can you add the |
|
@nicolo-ribaudo okay cool. Let me try |
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/11033/ |
1 similar comment
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/11033/ |
|
@nicolo-ribaudo Thanks. I fixed it. |
|
@nicolo-ribaudo Kindly review these changes. |
|
This PR looks good, but we will have to wait until v8 |
| "plugins": [ | ||
| "transform-flow-strip-types", | ||
| "transform-classes", | ||
| "@babel/plugin-proposal-class-properties", |
There was a problem hiding this comment.
This should just be proposal-class-properties, to use the package from the monorepo and not from node_modules
5bc8ee6 to
8d674a3
Compare
|
According to our e2e tests, this breaking change affects Babel itself 🙃 I'll fix it in |
5e5dfb8 to
e0b4781
Compare
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
* flow avoid removing class fields * fix test case * Update test Co-authored-by: Nicolò Ribaudo <[email protected]>
Fixes #10039Currently when using flow plugin
transform-flow-strip-typesremoves the uninitialize class fields, after this change we won't remove the uninitialize class fields. However they can remove usingignoreUninitializedoption mentioned here #9141