How to use the fbjs-scripts/jest/createCacheKeyFunction function in fbjs-scripts

To help you get started, we’ve selected a few fbjs-scripts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github patternfly / patternfly-react / packages / react-styles / src / build / jest / transform.js View on Github external
import createCacheKeyFunction from 'fbjs-scripts/jest/createCacheKeyFunction';

import { minifyCSS, cssToJS } from '../util';

export function process(src) {
  return cssToJS(minifyCSS(src), false);
}

export const getCacheKey = createCacheKeyFunction([]);

fbjs-scripts

A bundle of helpful scripts used in projects consuming fbjs.

MIT
Latest version published 3 years ago

Package Health Score

59 / 100
Full package analysis

Popular fbjs-scripts functions

Similar packages