From b159087ea60804caf7468ab5ba4861d68af1926d Mon Sep 17 00:00:00 2001 From: codecalm Date: Mon, 7 Sep 2020 12:29:44 +0200 Subject: svgr icons build --- .build/svgr-template.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .build/svgr-template.js (limited to '.build') diff --git a/.build/svgr-template.js b/.build/svgr-template.js new file mode 100644 index 0000000..ed7c593 --- /dev/null +++ b/.build/svgr-template.js @@ -0,0 +1,12 @@ +function template( + { template }, + opts, + { imports, componentName, props, jsx, exports }, +) { + return template.ast` + ${imports} + const ${componentName} = (size = 24, color = "currentColor", stroke = 2, ...props) => ${jsx} + ${exports} + ` +} +module.exports = template; -- cgit v1.2.1