diff --git a/webpack.config.js b/webpack.config.js index 14cca1303d0..5df93113e89 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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,