Skip to content

Commit

Permalink
feat: add forwardRef support for react components (#614)
Browse files Browse the repository at this point in the history
Co-authored-by: impulse <ecklf@icloud.com>
  • Loading branch information
RobinMalfait and ecklf committed Feb 21, 2022
1 parent be7c9de commit b9d1751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.js
Expand Up @@ -8,7 +8,7 @@ const { compile: compileVue } = require('@vue/compiler-dom')

let transform = {
react: async (svg, componentName, format) => {
let component = await svgr(svg, {}, { componentName })
let component = await svgr(svg, { ref: true }, { componentName })
let { code } = await babel.transformAsync(component, {
plugins: [[require('@babel/plugin-transform-react-jsx'), { useBuiltIns: true }]],
})
Expand Down

0 comments on commit b9d1751

Please sign in to comment.