Skip to content

Commit c473794

Browse files
authored
fix(cli-repl): add more indirect driver deps to startup snapshot (#1882)
Add `bindings` and `ipv6-normalize` since they are always used when loading the driver/`devtools-connect`, but not loaded immediately when the driver is also loaded.
1 parent c4db376 commit c473794

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/cli-repl/.depcheckrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ ignores:
1515
- '@mongodb-js/saslprep'
1616
- socks
1717
- emphasize
18+
- ipv6-normalize
19+
- bindings
1820
ignore-patterns:
1921
- .eslintrc.js

packages/cli-repl/src/run.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ if ((v8 as any)?.startupSnapshot?.isBuildingSnapshot?.()) {
3838
require('@mongodb-js/saslprep'); // Driver dependency
3939
require('socks'); // Driver dependency
4040
require('emphasize'); // Dependency of pretty-repl
41+
require('ipv6-normalize'); // Dependency of devtools-connect via os-dns-native
42+
require('bindings'); // Used by various native dependencies but not a native dep itself
4143

4244
{
4345
const console = require('console');

0 commit comments

Comments
 (0)