Merge pull request #7313 from tschaub/patch

Use lowercase module identifiers until ol@5
This commit is contained in:
Tim Schaub
2017-10-06 02:31:15 -06:00
committed by GitHub

View File

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