diff options
author | Michal Wolny <michal.wolny@versum.pl> | 2020-10-06 19:28:20 +0200 |
---|---|---|
committer | Michal Wolny <michal.wolny@versum.pl> | 2020-10-06 19:28:20 +0200 |
commit | d82841119820b4814169a8fa42a88f166f406a6f (patch) | |
tree | 5617b40088a57a19c74b454d949bbba5d3b63c63 /.build/svgr-template.js | |
parent | Release 1.33.0 (diff) | |
download | tabler-icons-d82841119820b4814169a8fa42a88f166f406a6f.tar.xz |
[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
Diffstat (limited to '.build/svgr-template.js')
-rw-r--r-- | .build/svgr-template.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; |