+6
-5
@@ -1268,2 +1268,3 @@ import fs, { realpathSync, statSync, lstatSync } from 'node:fs'; | ||
| const conditionsSet = options?.conditions ? new Set(options.conditions) : DEFAULT_CONDITIONS_SET; | ||
| const target = specifier || url.href; | ||
| const bases = _normalizeBases(options?.from); | ||
@@ -1275,8 +1276,8 @@ const suffixes = options?.suffixes || [""]; | ||
| for (const suffix of suffixes) { | ||
| let name = _join(target, suffix); | ||
| if (name === ".") { | ||
| name += "/."; | ||
| } | ||
| for (const extension of extensions) { | ||
| resolved = _tryModuleResolve( | ||
| _join(specifier || url.href, suffix) + extension, | ||
| base, | ||
| conditionsSet | ||
| ); | ||
| resolved = _tryModuleResolve(name + extension, base, conditionsSet); | ||
| if (resolved) { | ||
@@ -1283,0 +1284,0 @@ break; |
+1
-1
| { | ||
| "name": "exsolve", | ||
| "version": "1.0.6", | ||
| "version": "1.0.7", | ||
| "description": "Module resolution utilities based on Node.js upstream implementation.", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/exsolve", |
59615
0.11%1434
0.07%