Skip to content

Commit f7cb0ae

Browse files
fix(deps): update dependency svgo to v4 (#1478)
* fix(deps): update dependency svgo to v4 * fix(src/config.ts): remove removeViewBox override as it's now disabled by default --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Risu <79110363+risu729@users.noreply.github.com>
1 parent cc016ab commit f7cb0ae

File tree

3 files changed

+9
-24
lines changed

3 files changed

+9
-24
lines changed

bun.lock

Lines changed: 7 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"dependencies": {
2424
"sharp": "^0.34.2",
25-
"svgo": "^3.3.2"
25+
"svgo": "^4.0.0"
2626
},
2727
"peerDependencies": {
2828
"astro": "^4.7.0 || ^5.0.0"

src/config.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,7 @@ export const defaultConfig = {
7979
indent: 0,
8080
pretty: false,
8181
},
82-
plugins: [
83-
{
84-
name: "preset-default",
85-
params: {
86-
overrides: {
87-
// viewBox is important for some use cases
88-
// ref: https://github.com/svg/svgo/issues/1128
89-
removeViewBox: false,
90-
},
91-
},
92-
},
93-
],
82+
plugins: ["preset-default"],
9483
},
9584
} as const satisfies Required<LibrariesConfig>;
9685

0 commit comments

Comments
 (0)