From c2045c7ad0f266c74bd931331b58e0757b24254c Mon Sep 17 00:00:00 2001 From: lohxt1 Date: Thu, 9 Jan 2025 13:29:28 +0530 Subject: [PATCH] fix: allow node core modules in developer mode --- packages/bruno-js/src/runtime/script-runtime.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/bruno-js/src/runtime/script-runtime.js b/packages/bruno-js/src/runtime/script-runtime.js index dcde3f27c..ffd7d52ab 100644 --- a/packages/bruno-js/src/runtime/script-runtime.js +++ b/packages/bruno-js/src/runtime/script-runtime.js @@ -120,6 +120,7 @@ class ScriptRuntime { sandbox: context, require: { context: 'sandbox', + builtin: [ "*" ], external: true, root: [collectionPath, ...additionalContextRootsAbsolute], mock: { @@ -246,6 +247,7 @@ class ScriptRuntime { sandbox: context, require: { context: 'sandbox', + builtin: [ "*" ], external: true, root: [collectionPath], mock: {