mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-02-05 06:28:31 -06:00
18 lines
262 B
JavaScript
18 lines
262 B
JavaScript
const stats = new Map()
|
|
|
|
exports.get = (type, id) => {
|
|
let dic = stats.get(type)
|
|
if (!dic) {
|
|
dic = new Map()
|
|
stats.set(type, dic)
|
|
}
|
|
let stat = dic.get(id)
|
|
if (!stat) {
|
|
stat = {
|
|
value: 0
|
|
}
|
|
dic.set(id, stat)
|
|
}
|
|
return stat
|
|
}
|