Fix require() to work with index.js
This commit is contained in:
parent
7e435be565
commit
5bec691575
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ module specification, the '.js' suffix is optional.
|
|||
}
|
||||
} else {
|
||||
// look for an index.js file
|
||||
var indexJsFile = new File( dir + './index.js' );
|
||||
var indexJsFile = new File( dir, './index.js' );
|
||||
if ( indexJsFile.exists() ) {
|
||||
return indexJsFile;
|
||||
} else {
|
||||
|
|
Reference in a new issue