Skip to content

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Dec 6, 2023

VSCODE-488

This is so we can exclude it from the webview webpack in VSCODE without erroring. We could alternatively add a lot of polyfills (os-browserify path-browserify stream-http timers-browserify url util browserify-zlib) and keep it included. Excluding it seems a bit simpler and probably reduces bundle size.

Copy link
Collaborator

@gribnoysup gribnoysup left a comment

Choose a reason for hiding this comment

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

Looks good, but I wonder how do we make sure we don't cause any regression on that. Maybe there is a linter rule we can add to enforce only type imports from certain packages?

@Anemy Anemy merged commit 565344f into main Dec 6, 2023
@Anemy Anemy deleted the move-mongodb-to-dev-deps-in-connect-form branch December 6, 2023 15:25
@Anemy
Copy link
Member Author

Anemy commented Dec 6, 2023

Good thinking Sergey, I'll merge this for now to unblock VSCode work, and look into a lint rule now.

{
title: 'Nearest',
id: MongoReadPreference.NEAREST,
id: 'nearest',
Copy link
Collaborator

Choose a reason for hiding this comment

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

💙

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.

4 participants