@svgr/babel-plugin-svg-em-dimensions
Advanced tools
Comparing version 6.5.0 to 6.5.1
@@ -21,3 +21,5 @@ 'use strict'; | ||
JSXOpeningElement(path) { | ||
if (!elements.some((element) => path.get("name").isJSXIdentifier({ name: element }))) | ||
if (!elements.some( | ||
(element) => path.get("name").isJSXIdentifier({ name: element }) | ||
)) | ||
return; | ||
@@ -42,3 +44,11 @@ const values = { | ||
}); | ||
path.pushContainer("attributes", requiredAttributes.map((attr) => core.types.jsxAttribute(core.types.jsxIdentifier(attr), values[attr]))); | ||
path.pushContainer( | ||
"attributes", | ||
requiredAttributes.map( | ||
(attr) => core.types.jsxAttribute( | ||
core.types.jsxIdentifier(attr), | ||
values[attr] | ||
) | ||
) | ||
); | ||
} | ||
@@ -45,0 +55,0 @@ } |
{ | ||
"name": "@svgr/babel-plugin-svg-em-dimensions", | ||
"description": "Transform SVG to use em-based dimensions", | ||
"version": "6.5.0", | ||
"version": "6.5.1", | ||
"main": "./dist/index.js", | ||
@@ -39,3 +39,3 @@ "types": "./dist/index.d.ts", | ||
}, | ||
"gitHead": "b385279d27e51d34e4684dda326aa4216a485572" | ||
"gitHead": "d5efedd372999692f84d30072e502b5a6b8fe734" | ||
} |
Sorry, the diff of this file is not supported yet
7988
65