模块化,添加webpack支持

This commit is contained in:
undefined committed 2020-04-29 19:08:03 +08:00
1 parent 4ec2a46877
commit 75ebc1a746
30 files changed
+622 -459

No files matched your search

+4 -2
View File
@@ -1,4 +1,4 @@
module.exports = function* ranked(diter, equ = (a, b) => a === b) {
function* ranked(diter, equ = (a, b) => a === b) {
let last = null;
let r = 0;
let count = 0;
@@ -8,4 +8,6 @@ module.exports = function* ranked(diter, equ = (a, b) => a === b) {
last = doc;
yield [r, doc];
}
};
}
global.Hydro['lib.rank'] = module.exports = ranked;