Skip to content

chore(webpack, web): add saslprep no-op alias for webpack bundle web #6911

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented May 9, 2025

We're hitting the 10mb limit for the bundle:

/**
* Atlas Cloud uses in-flight compression that doesn't compress anything that is
* bigger than 10MB, we want to make sure that compass-web assets stay under the
* limit so that they are compressed when served
*/
const MAX_COMPRESSION_FILE_SIZE = 10_000_000;

These changes bring the size back down a bit. npm run analyze in the compass-web package for webpack analysis.

Related slack thread https://mongodb.slack.com/archives/G2L10JAV7/p1746808113154329

@Anemy Anemy added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label May 9, 2025
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

LGTM as is, suggestion about the export

// no-op
}

export default {
Copy link
Contributor

Choose a reason for hiding this comment

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

the named export above is the only one the driver uses.

But I understand wanting to cover your bases by making the "compatible" with the actual saslprep. If we want that then we'd need the export = as well.

No strong feelings though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants