fix typing problem
This commit is contained in:
parent
79a1defd88
commit
ba2f247116
|
@ -14,12 +14,12 @@ const WebpackError = require("./WebpackError");
|
|||
*/
|
||||
const sortModules = modules => {
|
||||
return modules.slice().sort((a, b) => {
|
||||
a = a.identifier();
|
||||
b = b.identifier();
|
||||
const aIdent = a.identifier();
|
||||
const bIdent = b.identifier();
|
||||
/* istanbul ignore next */
|
||||
if (a < b) return -1;
|
||||
if (aIdent < bIdent) return -1;
|
||||
/* istanbul ignore next */
|
||||
if (a > b) return 1;
|
||||
if (aIdent > bIdent) return 1;
|
||||
/* istanbul ignore next */
|
||||
return 0;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue