extensionless
Advanced tools
Comparing version 1.8.3 to 1.8.4
{ | ||
"name": "extensionless", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -25,3 +25,3 @@ import {extname} from 'path' | ||
export async function resolve(specifier, context, nextResolve) { | ||
let alias = specifier[0] === '#' && specifier[1] !== '/' && aliases.find(([k]) => k[1] !== undefined ? specifier.length > k[0].length + k[1].length && specifier.startsWith(k[0]) && specifier.endsWith(k[1]) : specifier === k[0]) | ||
let alias = specifier[0] === '#' && specifier[1] !== '/' && (await initPromise, aliases.find(([k]) => k[1] !== undefined ? specifier.length > k[0].length + k[1].length && specifier.startsWith(k[0]) && specifier.endsWith(k[1]) : specifier === k[0])) | ||
let spec = alias ? alias[1][0] + (alias[0][1] !== undefined ? specifier.substring(alias[0][0].length, specifier.length - alias[0][1].length) + alias[1][1] : '') : specifier | ||
@@ -28,0 +28,0 @@ let prefix = winAbsPath.test(spec) ? 'file://' : '' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7338