Merge pull request #7313 from tschaub/patch
Use lowercase module identifiers until ol@5
This commit is contained in:
@@ -57,7 +57,8 @@ function resolve(fromName, toName) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const back = new Array(fromLength - commonDepth).join('../') || './';
|
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('/')) {
|
if (relative.endsWith('/')) {
|
||||||
relative += 'index';
|
relative += 'index';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user