Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ loader-worker-spawn.mjs
File
loader-worker-spawn.mjs
test/fixtures/es-module-loaders/loader-worker-spawn.mjs:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ Worker } from
'worker_threads'
;
2
import
{ createRequire } from
'module'
;
3
4
const
require = createRequire(
import
.meta.url);
Callers
nothing calls this directly
Calls
4
createRequire
Function · 0.90
require
Function · 0.50
unref
Method · 0.45
path
Method · 0.45
Tested by
no test coverage detected