We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7e9f74 commit f52f714Copy full SHA for f52f714
src/index.ts
@@ -5,6 +5,9 @@ function load() {
5
try {
6
return require('../build/Release/mongocrypt.node');
7
} catch {
8
+ // Webpack will fail when just returning the require, so we need to wrap
9
+ // in a try/catch and rethrow.
10
+ /* eslint no-useless-catch: 0 */
11
12
return require('../build/Debug/mongocrypt.node');
13
} catch (error) {
0 commit comments