aboutsummaryrefslogtreecommitdiff
path: root/node_modules/postcss-reduce-idents/dist/lib/cache.js
blob: ccbdcfc657f8305b67bde452f2a1476202232b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict";

exports.__esModule = true;

exports.default = function (value, encoder, cache) {
    if (cache[value]) {
        return;
    }
    cache[value] = {
        ident: encoder(value, Object.keys(cache).length),
        count: 0
    };
};

module.exports = exports["default"];