Skip to content

Commit db35837

Browse files
authoredOct 5, 2022
fix: fix Yarn peer dependency warning from @babel/core (#786)
Installing @svgr/core with Yarn Modern (Yarn 2+) gives the following warning: ``` ➤ YN0002: │ @svgr/core@npm:6.4.0 doesn't provide @babel/core (p0b84c), requested by @svgr/babel-preset ``` Fixes #785
1 parent 80e8833 commit db35837

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎package-lock.json

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/core/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"prepublishOnly": "npm run reset && npm run build"
3939
},
4040
"dependencies": {
41+
"@babel/core": "^7.18.5",
4142
"@svgr/babel-preset": "^6.4.0",
4243
"@svgr/plugin-jsx": "^6.4.0",
4344
"camelcase": "^6.2.0",

0 commit comments

Comments
 (0)
Please sign in to comment.