@svgr/babel-plugin-transform-svg-component
Advanced tools
Comparing version 6.0.0-alpha.2 to 6.0.0-alpha.3
@@ -5,3 +5,3 @@ import { types, ConfigAPI, NodePath } from '@babel/core'; | ||
interface TemplateVariables { | ||
componentName: types.Identifier; | ||
componentName: string; | ||
interfaces: types.TSInterfaceDeclaration[]; | ||
@@ -8,0 +8,0 @@ props: (types.ObjectPattern | types.Identifier)[]; |
@@ -93,3 +93,2 @@ 'use strict'; | ||
var _a, _b, _c; | ||
const componentName = core.types.identifier(opts.state.componentName); | ||
const interfaces = []; | ||
@@ -101,3 +100,3 @@ const props = []; | ||
importSource: (_a = opts.importSource) != null ? _a : defaultImportSource, | ||
exportIdentifier: componentName, | ||
exportIdentifier: core.types.identifier(opts.state.componentName), | ||
opts, | ||
@@ -182,3 +181,10 @@ interfaces, | ||
} | ||
return { componentName, props, interfaces, imports, exports, jsx }; | ||
return { | ||
componentName: opts.state.componentName, | ||
props, | ||
interfaces, | ||
imports, | ||
exports, | ||
jsx | ||
}; | ||
}; | ||
@@ -185,0 +191,0 @@ |
{ | ||
"name": "@svgr/babel-plugin-transform-svg-component", | ||
"description": "Transform SVG into component", | ||
"version": "6.0.0-alpha.2", | ||
"version": "6.0.0-alpha.3", | ||
"main": "./dist/index.js", | ||
@@ -33,3 +33,3 @@ "exports": "./dist/index.js", | ||
}, | ||
"gitHead": "f729efaad6e2ec22a27972b025737f41cf661045" | ||
"gitHead": "261e1b545cb4af74991af236306ecce502318245" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24213
251