From 1eb64589537dfdd54724643478eef135eac10cfb Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 12 Sep 2023 14:24:33 +0200 Subject: [PATCH] fixup: load some nested dependencies eagerly --- packages/cli-repl/src/run.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/cli-repl/src/run.ts b/packages/cli-repl/src/run.ts index 968e78c70..711624cf0 100644 --- a/packages/cli-repl/src/run.ts +++ b/packages/cli-repl/src/run.ts @@ -27,6 +27,12 @@ import crypto from 'crypto'; import net from 'net'; import v8 from 'v8'; +// Import a few nested deps of dependencies that cannot be included in the +// primary snapshot eagerly. +import '@mongodb-js/saslprep'; // Driver dependency +import 'socks'; // Driver dependency +import 'emphasize'; // Dependency of pretty-repl + if ((v8 as any)?.startupSnapshot?.isBuildingSnapshot?.()) { { const console = require('console');