Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export function saslprep(): void {
// no-op
}

export default {
saslprep,
};
7 changes: 6 additions & 1 deletion packages/compass-web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ module.exports = (env, args) => {
'@mongodb-js/devtools-proxy-support'
),

// We don't need saslprep in the web, as we don't use scram auth.
// We use a local polyfill for the driver to avoid having it in the bundle
// as it is a decent size.
'@mongodb-js/saslprep': localPolyfill('@mongodb-js/saslprep'),

// Replace 'devtools-connect' with a package that just directly connects
// using the driver (= web-compatible driver) logic, because devtools-connect
// contains a lot of logic that makes sense in a desktop application/CLI but
Expand Down Expand Up @@ -218,7 +223,7 @@ module.exports = (env, args) => {
'react-dom': 'commonjs2 react-dom',

// TODO(CLOUDP-228421): move Socket implementation from mms codebase when
// active work on the connumicatino protocol is wrapped up
// active work on the communication protocol is wrapped up
tls: 'commonjs2 tls',
},
plugins: [
Expand Down