Node require.resolve now matches Node more closely (
2318a02)
Module._resolveLookupPaths now returns null for built-ins, require.resolve/.paths validate argument types, and options.paths entries are checked before use. The patch also fixes a panic with empty parent filenames and adjusts resolution behavior for node:unknown and ./relative requests, improving compatibility and reducing edge-case crashes.