We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f71004f commit a12ec00Copy full SHA for a12ec00
packages/mocker/src/node/redirect.ts
@@ -71,7 +71,13 @@ const builtins = new Set([
71
'wasi',
72
])
73
74
-const prefixedBuiltins = new Set(['node:test', 'node:sqlite'])
+// https://nodejs.org/api/modules.html#built-in-modules-with-mandatory-node-prefix
75
+const prefixedBuiltins = new Set([
76
+ 'node:sea',
77
+ 'node:sqlite',
78
+ 'node:test',
79
+ 'node:test/reporters',
80
+])
81
const NODE_BUILTIN_NAMESPACE = 'node:'
82
function isNodeBuiltin(id: string): boolean {
83
if (prefixedBuiltins.has(id)) {
0 commit comments