[Client] Enable code splitting

And some optimizations
This commit is contained in:
syuilo
2018-11-12 04:09:02 +09:00
parent 0b40194d31
commit b1b02d0e32
10 changed files with 82 additions and 115 deletions

View File

@ -1,8 +1,10 @@
const crypto = require('crypto');
// スクリプトサイズがデカい
//const crypto = require('crypto');
export default (data: ArrayBuffer) => {
const buf = new Buffer(data);
const hash = crypto.createHash("md5");
hash.update(buf);
return hash.digest("hex");
};
//const buf = new Buffer(data);
//const hash = crypto.createHash("md5");
//hash.update(buf);
//return hash.digest("hex");
return '';
};