MCPcopy
hub / github.com/webpack/webpack / getKnownProperties

Function getKnownProperties

lib/css/CssParser.js:467–479  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

465 * @returns {Map<string, Record<string, number>>} known properties table
466 */
467const getKnownProperties = (options = {}) => {
468 const key =
469 (options.animation ? 1 : 0) |
470 (options.container ? 2 : 0) |
471 (options.customIdents ? 4 : 0) |
472 (options.grid ? 8 : 0);
473 let table = KNOWN_PROPERTIES_CACHE.get(key);
474 if (table === undefined) {
475 table = buildKnownProperties(options);
476 KNOWN_PROPERTIES_CACHE.set(key, table);
477 }
478 return table;
479};
480
481const EMPTY_COMMENT_OPTIONS = {
482 options: null,

Callers 1

parseMethod · 0.85

Calls 3

buildKnownPropertiesFunction · 0.85
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected