Skip to content

Conversation

@lohxt1
Copy link
Contributor

@lohxt1 lohxt1 commented Jan 9, 2025

~ enables usage of node's core modules in developer mode

node_core_modules_usage

sandbox: context,
require: {
context: 'sandbox',
builtin: [ "*" ],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe only if allowScriptFilesystemAccess is set? similar to how its done for the fs builtin-module?

builtin: [ "*" ],
external: true,
root: [collectionPath, ...additionalContextRootsAbsolute],
mock: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note related to this PR. @helloanoop any reason why we use mock instead of external? for adding the default libs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants