diff --git a/src/cli/__snapshots__/index.test.js.snap b/src/cli/__snapshots__/index.test.js.snap index a5ca5f97..debf6bfb 100644 --- a/src/cli/__snapshots__/index.test.js.snap +++ b/src/cli/__snapshots__/index.test.js.snap @@ -4,7 +4,7 @@ exports[`cli --icon 1`] = ` "import React from \\"react\\"; const One = props => ( - + ); @@ -312,7 +312,7 @@ exports[`cli --ref 1`] = ` "import React from \\"react\\"; const One = ({ svgRef, ...props }) => ( - + Rectangle 5 diff --git a/src/configToOptions.js b/src/configToOptions.js index 9ce0c32c..fa4f8ce1 100644 --- a/src/configToOptions.js +++ b/src/configToOptions.js @@ -47,10 +47,10 @@ function configToOptions(config = {}) { plugins.push(replaceAttrValue(oldValue, newValue)) }) if (!config.dimensions) plugins.push(removeDimensions) - if (config.expandProps) plugins.push(expandProps) if (config.icon) plugins.push(emSize) - if (config.native) plugins.push(toReactNative) if (config.ref) plugins.push(svgRef) + if (config.expandProps) plugins.push(expandProps) + if (config.native) plugins.push(toReactNative) return plugins }