Skip to content

Commit

Permalink
fix(package): ensure no endless loop in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tripodsan committed May 27, 2019
1 parent b34f958 commit f7387ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parcel/ExternalsCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ExternalsCollector {
// todo async
const pkgInfos = {};
function resolveByPackageJson(resource) {
if (!resource || resource === '/') {
if (!resource || resource === '/' || path.dirname(resource) === resource) {
return [];
}
let info = pkgInfos[resource];
Expand Down

0 comments on commit f7387ca

Please sign in to comment.