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

Remove Flow #4451

Merged
merged 2 commits into from Nov 28, 2019
Merged

Remove Flow #4451

merged 2 commits into from Nov 28, 2019

Conversation

hudochenkov
Copy link
Member

Which issue, if any, is this issue related to?

Related to #4245.

Is there anything in the PR that needs further explanation?

It's a breaking change, because we include flow-typed into npm package.

I removed Flow in the first commit. And in the second I removed all Flow comments.


Just for history: How I removed Flow comments.

Initial idea was to write simple Babel plugin which will remove comments. But after hour digging into plugin development for Babel I couldn't find how to work with comments in Babel ¯\_(ツ)_/¯ Comments aren't tretead as any other AST node for some reason.

So I just used VS Code and search and replace using RegExp :) I was done in 10 minutes.

Here's RegExp I used:

\/\*: (.|\n)+?\*\/
\/\*:: (.|\n)+?\*\/

Copy link
Member

@ntwb ntwb left a comment

Choose a reason for hiding this comment

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

Perfect, thanks 💯

Copy link
Member

@fanich37 fanich37 left a comment

Choose a reason for hiding this comment

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

Never really liked flow. It's just to clever sometimes 😆

@hudochenkov hudochenkov merged commit b93ee01 into master Nov 28, 2019
@hudochenkov hudochenkov deleted the remove-flow branch November 28, 2019 08:14
@hudochenkov
Copy link
Member Author

  • Removed: types declarations for Flow (#4451).

@glen-84 glen-84 mentioned this pull request Jan 12, 2020
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants