UNPKG

svg-react-loader

Version:

A Webpack Loader to turn SVGs into React Components

16 lines (12 loc) 341 B
var R = require('ramda'); var DEFAULTS = { explicitChildren: true, preserveChildrenOrder: true, explicitRoot: false, attrkey: 'props', childkey: 'children', tagkey: 'tagname' }; module.exports = function (opts) { return R.merge(DEFAULTS, opts || {}); };