babel-plugin-inline-react-svg
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -111,3 +111,5 @@ "use strict"; | ||
var rawSource = (0, _fs.readFileSync)(svgPath, 'utf8'); | ||
var optimizedSource = state.opts.svgo === false ? rawSource : (0, _optimize["default"])(rawSource, state.opts.svgo); | ||
var optimizedSource = state.opts.svgo === false ? { | ||
data: rawSource | ||
} : (0, _optimize["default"])(rawSource, state.opts.svgo); | ||
var escapeSvgSource = (0, _escapeBraces["default"])(optimizedSource); | ||
@@ -114,0 +116,0 @@ var parsedSvgAst = (0, _parser.parse)(escapeSvgSource.data, { |
{ | ||
"name": "babel-plugin-inline-react-svg", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A babel plugin that optimizes and inlines SVGs for your react components.", | ||
@@ -53,3 +53,3 @@ "main": "lib/index.js", | ||
"resolve": "^1.20.0", | ||
"svgo": "^2.0.0" | ||
"svgo": "^2.0.3" | ||
}, | ||
@@ -56,0 +56,0 @@ "engines": { |
33661
648
Updatedsvgo@^2.0.3