Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const createRenderer = opts => {
const enhancers = [beautifier()];
if (opts && opts.fontNode) {
enhancers.push(fontRenderer(opts.fontNode));
} else {
enhancers.push(fontRenderer());
}
if (opts && opts.useMonolithic) {
enhancers.push(monolithic());
}
return createFelaRenderer({
plugins: [prefixer(), fallbackValue(), unit(), lvha(), validator()],
enhancers,
selectorPrefix: ['cf-']
});
};