@svgr/babel-plugin-transform-svg-component
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [4.2.0](https://github.com/smooth-code/svgr/tree/master/packages/babel-plugin-transform-svg-component/compare/v4.1.0...v4.2.0) (2019-04-11) | ||
### Features | ||
* add expo option ([#289](https://github.com/smooth-code/svgr/tree/master/packages/babel-plugin-transform-svg-component/issues/289)) ([978db3e](https://github.com/smooth-code/svgr/tree/master/packages/babel-plugin-transform-svg-component/commit/978db3e)) | ||
# [4.1.0](https://github.com/smooth-code/svgr/compare/v4.0.4...v4.1.0) (2018-11-24) | ||
@@ -8,0 +19,0 @@ |
@@ -42,3 +42,7 @@ "use strict"; | ||
if (opts.native) { | ||
importDeclarations.push(t.importDeclaration([t.importDefaultSpecifier(t.identifier('Svg'))], t.stringLiteral('react-native-svg'))); | ||
if (opts.native.expo) { | ||
importDeclarations.push(t.importDeclaration([], t.stringLiteral('expo'))); | ||
} else { | ||
importDeclarations.push(t.importDeclaration([t.importDefaultSpecifier(t.identifier('Svg'))], t.stringLiteral('react-native-svg'))); | ||
} | ||
} | ||
@@ -45,0 +49,0 @@ |
{ | ||
"name": "@svgr/babel-plugin-transform-svg-component", | ||
"description": "Transform SVG into component", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"main": "lib/index.js", | ||
"repository": "git@github.com:smooth-code/svgr.git", | ||
"repository": "https://github.com/smooth-code/svgr/tree/master/packages/babel-plugin-transform-svg-component", | ||
"author": "Greg Bergé <berge.greg@gmail.com>", | ||
@@ -23,3 +23,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "36a43e2d45469d6ff9aae6d4de004487fc649f03" | ||
"gitHead": "35d3f4d446e5402902ee922a3f9984000bb74920" | ||
} |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6819
102