fix: allow node core modules in developer mode

This commit is contained in:
lohxt1 2025-01-09 13:29:28 +05:30
parent 3cb15fc001
commit c2045c7ad0

View File

@ -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: {