From d82841119820b4814169a8fa42a88f166f406a6f Mon Sep 17 00:00:00 2001 From: Michal Wolny Date: Tue, 6 Oct 2020 19:28:20 +0200 Subject: [dev-icons-react-bundling] change svgr template to enable babel transformation, add babel with react and env, add rollup for commonJS, UMD and ESM, add gulp and npm tasks for building react, add peer react and react-dom dependencies, add needed deps, updated npm package files, updated readme --- .build/svgr-template.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.build') diff --git a/.build/svgr-template.js b/.build/svgr-template.js index ed7c593a..c8c41384 100644 --- a/.build/svgr-template.js +++ b/.build/svgr-template.js @@ -5,8 +5,8 @@ function template( ) { return template.ast` ${imports} - const ${componentName} = (size = 24, color = "currentColor", stroke = 2, ...props) => ${jsx} + function ${componentName}({ size = 24, color = "currentColor", stroke = 2, ...props }) { return (${jsx}); } ${exports} - ` + `; } module.exports = template; -- cgit v1.2.1