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

Removing references to fbjs #8

Merged
merged 1 commit into from
Mar 19, 2021
Merged

Removing references to fbjs #8

merged 1 commit into from
Mar 19, 2021

Conversation

bilewinters
Copy link
Contributor

fbjs is used in two places in order to raise Invariant Violation errors.

Depending on how the project is interpreted by metro (this seems to happen in RN 0.64.0) it does pick up on the usage of fbjs, however it isn't a dependency of the project, so bundling fails. (Was fbjs pulled in by RN in previous versions? Unsure. It certainly isn't on 64...)

Rather than add a dependency for two lines of code, I've removed the references, and replaced them with the equivalent errors being thrown manually, as the change is tiny.

@adelarsq
Copy link
Contributor

Good job! I think that is a good practice to remove dependencies like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants