-
Notifications
You must be signed in to change notification settings - Fork 247
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
Conversation
nbbeeken
left a comment
There was a problem hiding this 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
|
I need to look into the test that's failing. Might be that our testing is using connection strings that use this. I'm thinking we might want to more explicitly throw here when the polyfill is used with a message indicating it's not supported and why. |
|
|
||
| it('can connect to an Atlas replicaset without srv', async function () { | ||
| if (!hasAtlasEnvironmentVariables()) { | ||
| if (!hasAtlasEnvironmentVariables() || TEST_COMPASS_WEB) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't skip those, most of our web tests will use the user-pass based auth, let's rather exclude sasl prep only for published bundle, and not for one that will be compiled for tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. Updated the webpack to only run on production with the comment.
|
Merged to unblock compass-web package bundling size restriction so we can release new versions of that. @gribnoysup if the changes don't make sense feel free to revert, or I can make a follow up pr. |
We're hitting the 10mb limit for the bundle:
compass/packages/compass-web/webpack.config.js
Lines 18 to 23 in 5421da4
These changes bring the size back down a bit.
npm run analyzein thecompass-webpackage for webpack analysis.Related slack thread https://mongodb.slack.com/archives/G2L10JAV7/p1746808113154329