Skip to content

Commit

Permalink
feat: use svgo v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Aissaoui-Ahmed committed Dec 5, 2021
1 parent fe342b8 commit 5606312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-svg-core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Svgo from "svgo";
import { transformSync as babelTransform } from "@babel/core";
import plugin from "babel-plugin-react-svg";

import Svgo from "svgo/lib/svgo/jsAPI";
import { validateAndFix } from "./svgo";


// SVGO Optimize
export function optimize(opts: any = {}): (content: string) => Promise<string> {
opts = validateAndFix(opts);
Expand Down

0 comments on commit 5606312

Please sign in to comment.