browser-resolve
Advanced tools
Comparing version 1.11.2 to 1.11.3
12
index.js
@@ -56,3 +56,3 @@ // builtin | ||
if (replacements[key] === false) { | ||
val = __dirname + '/empty.js'; | ||
val = path.normalize(__dirname + '/empty.js'); | ||
} | ||
@@ -303,11 +303,13 @@ else { | ||
var shims = load_shims_sync(paths, opts.browser); | ||
var resid = path.resolve(opts.basedir || path.dirname(opts.filename), id); | ||
if (shims[id]) { | ||
if (shims[id] || shims[resid]) { | ||
var xid = shims[id] ? id : resid; | ||
// if the shim was is an absolute path, it was fully resolved | ||
if (shims[id][0] === '/') { | ||
return shims[id]; | ||
if (shims[xid][0] === '/') { | ||
return resv.sync(shims[xid], build_resolve_opts(opts, base)); | ||
} | ||
// module -> alt-module shims | ||
id = shims[id]; | ||
id = shims[xid]; | ||
} | ||
@@ -314,0 +316,0 @@ |
{ | ||
"name": "browser-resolve", | ||
"version": "1.11.2", | ||
"version": "1.11.3", | ||
"description": "resolve which handles browser field support in package.json", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
14998
5
281
0
147