From 7306dfad986fde0cefa615fb146ff5a7e2ea9a26 Mon Sep 17 00:00:00 2001 From: Carlos Martinez Date: Wed, 27 Sep 2023 10:40:29 +0200 Subject: [PATCH] refactor: update svgr config to the new major version --- svgr.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svgr.config.js b/svgr.config.js index 6b633cafb2..f9b3ac5589 100644 --- a/svgr.config.js +++ b/svgr.config.js @@ -12,7 +12,7 @@ const templateCreateStyledIcon = fs.readFileSync( ); const indexTemplate = (filePaths) => { - const exportEntries = filePaths.map((filePath) => { + const exportEntries = filePaths.map(({ path: filePath }) => { const basename = path.basename(filePath, path.extname(filePath)); const exportName = `${basename.replace(/react/i, 'Icon')}`; return `export { default as ${exportName} } from './${basename}'`;