UNPKG

svg-react-loader

Version:

A Webpack Loader to turn SVGs into React Components

12 lines (8 loc) 205 B
var R = require('ramda'); module.exports = R.curry(function attributeMapper (opts, name) { var mappings = opts; if (name in mappings) { return mappings[name]; } return name; });