aboutsummaryrefslogtreecommitdiff
path: root/.build
diff options
context:
space:
mode:
authorPaweł Kuna <1282324+codecalm@users.noreply.github.com>2020-10-08 21:14:05 +0200
committerGitHub <noreply@github.com>2020-10-08 21:14:05 +0200
commitfa480759bd45f06341dc8026f3fb0f981965200c (patch)
tree5617b40088a57a19c74b454d949bbba5d3b63c63 /.build
parentRelease 1.33.0 (diff)
parent[dev-icons-react-bundling] change svgr template to enable babel transformatio... (diff)
downloadtabler-icons-fa480759bd45f06341dc8026f3fb0f981965200c.tar.xz
Merge pull request #82 from tabler/dev-icons-react-bundling
React icons bundling for different usage types
Diffstat (limited to '.build')
-rw-r--r--.build/svgr-template.js4
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;