yarn add -D chin chin-plugin-svgr
import svgr, { merge } from 'chin-plugin-svgr'
const svg2cmp = svgr()
const svg2cmps = merge()
export default {
put,
out,
processors: [
['dir', { svg: svg2cmps }],
['*', { svg: svg2cmp }]
],
after: () => {
const codes = svg2cmps.after()
}
}
options is passed in both.