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

Fix: prevent frontend import of mongoose #468

Merged
merged 8 commits into from
Jun 20, 2022

Conversation

mattyg
Copy link
Collaborator

@mattyg mattyg commented Jun 14, 2022

Partially improves #466

This is the minimum set of changes required that prevent the frontend from importing the package 'mongoose'.

I created this PR to contrast with #461, which seems like it may be overly complicated just to address this issue.

I think it makes sense to merge this PR, and then we can think about #461 independently and decide if it's the right approach.

@mattyg mattyg changed the title Fix/prevent frontend import of mongoose Fix: prevent frontend import of mongoose Jun 15, 2022
@mattyg mattyg requested a review from kristoferlund June 15, 2022 15:14
Copy link
Member

@kristoferlund kristoferlund left a comment

Choose a reason for hiding this comment

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

Great! And I agree, let's go with this simpler fix to avoid Mongoose ending up in the client. Package size decreased significantly. Merging.

@kristoferlund kristoferlund merged commit 5774a34 into main Jun 20, 2022
@kristoferlund kristoferlund deleted the fix/prevent_frontend_import_of_mongoose branch June 20, 2022 11:25
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.

2 participants