Skip to content

Commit

Permalink
Add @babel/core dependencies to react/preact integrations (#3928)
Browse files Browse the repository at this point in the history
* Add @babel/core dependencies

* Adds a changeset
  • Loading branch information
matthewp authored Jul 14, 2022
1 parent 7c5c410 commit d6dfef0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
6 changes: 6 additions & 0 deletions .changeset/red-wasps-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@astrojs/preact': patch
'@astrojs/react': patch
---

Removes @babel/core peerDependency warning
1 change: 1 addition & 0 deletions packages/integrations/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"dev": "astro-scripts dev \"src/**/*.ts\""
},
"dependencies": {
"@babel/core": ">=7.0.0-0 <8.0.0",
"@babel/plugin-transform-react-jsx": "^7.17.12",
"babel-plugin-module-resolver": "^4.1.0",
"preact-render-to-string": "^5.2.0"
Expand Down
1 change: 1 addition & 0 deletions packages/integrations/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"dev": "astro-scripts dev \"src/**/*.ts\""
},
"dependencies": {
"@babel/core": ">=7.0.0-0 <8.0.0",
"@babel/plugin-transform-react-jsx": "^7.17.12"
},
"devDependencies": {
Expand Down
24 changes: 6 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d6dfef0

Please sign in to comment.