Make SVGR icons use forward ref (#26082)
This commit is contained in:
parent
19b2eded16
commit
1ada110fed
1 changed files with 6 additions and 0 deletions
|
@ -524,6 +524,12 @@ module.exports = (env, argv) => {
|
|||
removeDimensions: true,
|
||||
},
|
||||
},
|
||||
/**
|
||||
* Forwards the React ref to the root SVG element
|
||||
* Useful when using things like `asChild` in
|
||||
* radix-ui
|
||||
*/
|
||||
ref: true,
|
||||
esModule: false,
|
||||
name: "[name].[hash:7].[ext]",
|
||||
outputPath: getAssetOutputPath,
|
||||
|
|
Loading…
Reference in a new issue