We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 667820d commit e83551bCopy full SHA for e83551b
src/index.js
@@ -36,7 +36,7 @@ export default ({ types: t }) => ({
36
if(aliasMatch){
37
const resolveRoot = resolve(process.cwd(), root || './');
38
const aliasedPath = resolve(resolveRoot, aliasMatch);
39
- svgPath = aliasedPath + path.node.source.value.replace(aliasMatch);
+ svgPath = aliasedPath + path.node.source.value.replace(aliasMatch, '');
40
} else {
41
svgPath = resolveFrom(dirname(iconPath), path.node.source.value);
42
}
0 commit comments