Skip to content

Commit

Permalink
Update createExplorer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Feb 22, 2019
1 parent 9153f5f commit 61680f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/createExplorer.js
Expand Up @@ -72,8 +72,6 @@ class Explorer {

if(config.packageFilenames == null) {
config.packageFilenames = [];
} else if(!Array.isArray(config.packageFilenames)) {
config.packageFilenames = [config.packageFilenames];
}
}

Expand Down Expand Up @@ -185,7 +183,7 @@ class Explorer {
}

getLoaderEntryForFile(filepath: string): LoaderEntry {
if (this.config.packageFilenames.includes(path.basename(filepath))) {
packif (this.config.packageFilenames.includes(path.basename(filepath))) {
const loader = this.loadPackageProp.bind(this);
return { sync: loader, async: loader };
}
Expand Down

0 comments on commit 61680f4

Please sign in to comment.