Skip to content

Commit a91764a

Browse files
authored
Update index.ts
1 parent f888550 commit a91764a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'node:fs'
2+
import { builtinModules } from 'node:module'
23
import path from 'node:path'
3-
import { builtinModules } from 'node:module';
44

55
import debug from 'debug'
66
import type { FileSystem, ResolveOptions, Resolver } from 'enhanced-resolve'
@@ -123,7 +123,7 @@ const digestHashObject = (value: object | null | undefined) =>
123123
* versions of Node.js, we can use module.isBuiltin instead of this function.
124124
*/
125125
function isBuiltin(moduleName: string) {
126-
return builtinModules.includes(moduleName.replace(/^node:/, ''));
126+
return builtinModules.includes(moduleName.replace(/^node:/, ''))
127127
}
128128

129129
/**

0 commit comments

Comments
 (0)