babel-plugin-inline-react-svg
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -42,4 +42,3 @@ Object.defineProperty(exports, "__esModule", { | ||
var iconPath = state.file.opts.filename; | ||
var absoluteIconPath = (0, _path.join)(__dirname, '..', iconPath); | ||
var svgPath = (0, _path.join)((0, _path.dirname)(absoluteIconPath), path.node.source.value); | ||
var svgPath = (0, _path.join)((0, _path.dirname)(iconPath), path.node.source.value); | ||
var svgSource = (0, _fs.readFileSync)(svgPath, 'utf8'); | ||
@@ -46,0 +45,0 @@ var optimizedSvgSource = (0, _optimize2['default'])(svgSource); |
{ | ||
"name": "babel-plugin-inline-react-svg", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A babel plugin that optimizes and inlines SVGs for your react components.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
11556
226