We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f888550 commit a91764aCopy full SHA for a91764a
src/index.ts
@@ -1,6 +1,6 @@
1
import fs from 'node:fs'
2
+import { builtinModules } from 'node:module'
3
import path from 'node:path'
-import { builtinModules } from 'node:module';
4
5
import debug from 'debug'
6
import type { FileSystem, ResolveOptions, Resolver } from 'enhanced-resolve'
@@ -123,7 +123,7 @@ const digestHashObject = (value: object | null | undefined) =>
123
* versions of Node.js, we can use module.isBuiltin instead of this function.
124
*/
125
function isBuiltin(moduleName: string) {
126
- return builtinModules.includes(moduleName.replace(/^node:/, ''));
+ return builtinModules.includes(moduleName.replace(/^node:/, ''))
127
}
128
129
/**
0 commit comments