Skip to content

Commit

Permalink
fix: mark @babel/core as optional peer dependency (#739)
Browse files Browse the repository at this point in the history
* Fixes #736

Moving `@babel/core` from devDependencies to dependencies.
Fixes the missing dependency error that comes while installing it through `Yarn 2, Yarn 3`.

Error - 
`
styled-jsx@npm:4.0.0 [78a22] doesn't provide @babel/core (pad17e), requested by @babel/plugin-syntax-jsx
`

* moving babel back to dev deps and adding peerdependencies meta option

* Update package.json

Co-authored-by: Jiachi Liu <inbox@huozhi.im>
  • Loading branch information
spa5k and huozhi authored Aug 30, 2021
1 parent 2a1bb87 commit 69a76f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@
"peerDependencies": {
"react": ">= 16.8.0 || 17.x.x || 18.x.x"
},
"peerDependenciesMeta": {
"@babel/core": {
"optional": true
}
},
"engines": {
"node": ">= 12.0.0"
},
Expand Down

0 comments on commit 69a76f2

Please sign in to comment.