mirror of https://github.com/vector-im/riot-web
Make SVGR icons use forward ref (#26082)
parent
19b2eded16
commit
1ada110fed
|
@ -524,6 +524,12 @@ module.exports = (env, argv) => {
|
||||||
removeDimensions: true,
|
removeDimensions: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* Forwards the React ref to the root SVG element
|
||||||
|
* Useful when using things like `asChild` in
|
||||||
|
* radix-ui
|
||||||
|
*/
|
||||||
|
ref: true,
|
||||||
esModule: false,
|
esModule: false,
|
||||||
name: "[name].[hash:7].[ext]",
|
name: "[name].[hash:7].[ext]",
|
||||||
outputPath: getAssetOutputPath,
|
outputPath: getAssetOutputPath,
|
||||||
|
|
Loading…
Reference in New Issue