Use lowercase module identifiers until ol@5

This commit is contained in:
Tim Schaub
2017-10-05 16:42:45 -06:00
parent 9a50f9ff75
commit 0802f50bc6

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';
}