vite-plugin-resolve
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -34,7 +34,7 @@ /** | ||
}, | ||
async load(id, opts) { | ||
load(id, opts) { | ||
if (resolveKeysWithPrefix.includes(id)) { | ||
const stringOrFunction = resolves[id.replace(prefix, '')]; | ||
return typeof stringOrFunction === 'function' | ||
? await stringOrFunction(id, opts) | ||
? stringOrFunction(id, opts) | ||
: stringOrFunction; | ||
@@ -41,0 +41,0 @@ } |
{ | ||
"name": "vite-plugin-resolve", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Custom resolve module content.", | ||
@@ -15,6 +15,6 @@ "main": "index.js", | ||
"vite", | ||
"plugin", | ||
"resolve", | ||
"external", | ||
"vite-plugin-resolve" | ||
"external" | ||
] | ||
} |
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
5803