Imports cased like the filename

This commit is contained in:
Tim Schaub
2017-12-11 16:26:11 -07:00
parent 46fd03047b
commit 1cdb6a66f0
287 changed files with 1 additions and 2 deletions

View File

@@ -57,8 +57,7 @@ function resolve(fromName, toName) {
}
const back = new Array(fromLength - commonDepth).join('../') || './';
// TODO: remove .toLowerCase() after running tasks/filename-case-from-module.js
let relative = back + toParts.slice(commonDepth).join('/').toLowerCase();
let relative = back + toParts.slice(commonDepth).join('/');
if (relative.endsWith('/')) {
relative += 'index';
}