Blame view

node_modules/postcss-reduce-idents/dist/lib/cache.js 285 Bytes
aaac7fed   liuqimichale   add
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"];