Add @babel/core dependencies to react/preact integrations (#3928)

* Add @babel/core dependencies

* Adds a changeset
This commit is contained in:
Matthew Phillips 2022-07-14 14:39:58 -04:00 committed by GitHub
parent 7c5c4106d7
commit d6dfef0caa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 18 deletions

View file

@ -0,0 +1,6 @@
---
'@astrojs/preact': patch
'@astrojs/react': patch
---
Removes @babel/core peerDependency warning

View file

@ -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"

View file

@ -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": {

View file

@ -2079,6 +2079,7 @@ importers:
packages/integrations/preact:
specifiers:
'@babel/core': '>=7.0.0-0 <8.0.0'
'@babel/plugin-transform-react-jsx': ^7.17.12
astro: workspace:*
astro-scripts: workspace:*
@ -2086,7 +2087,8 @@ importers:
preact: ^10.7.3
preact-render-to-string: ^5.2.0
dependencies:
'@babel/plugin-transform-react-jsx': 7.18.6
'@babel/core': 7.18.6
'@babel/plugin-transform-react-jsx': 7.18.6_@babel+core@7.18.6
babel-plugin-module-resolver: 4.1.0
preact-render-to-string: 5.2.0_preact@10.9.0
devDependencies:
@ -2123,6 +2125,7 @@ importers:
packages/integrations/react:
specifiers:
'@babel/core': '>=7.0.0-0 <8.0.0'
'@babel/plugin-transform-react-jsx': ^7.17.12
'@types/react': ^17.0.45
'@types/react-dom': ^17.0.17
@ -2131,7 +2134,8 @@ importers:
react: ^18.1.0
react-dom: ^18.1.0
dependencies:
'@babel/plugin-transform-react-jsx': 7.18.6
'@babel/core': 7.18.6
'@babel/plugin-transform-react-jsx': 7.18.6_@babel+core@7.18.6
devDependencies:
'@types/react': 17.0.47
'@types/react-dom': 17.0.17
@ -3779,22 +3783,6 @@ packages:
'@babel/helper-plugin-utils': 7.18.6
dev: true
/@babel/plugin-transform-react-jsx/7.18.6:
resolution: {integrity: sha512-Mz7xMPxoy9kPS/JScj6fJs03TZ/fZ1dJPlMjRAgTaxaS0fUBk8FV/A2rRgfPsVCZqALNwMexD+0Uaf5zlcKPpw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
peerDependenciesMeta:
'@babel/core':
optional: true
dependencies:
'@babel/helper-annotate-as-pure': 7.18.6
'@babel/helper-module-imports': 7.18.6
'@babel/helper-plugin-utils': 7.18.6
'@babel/plugin-syntax-jsx': 7.18.6
'@babel/types': 7.18.8
dev: false
/@babel/plugin-transform-react-jsx/7.18.6_@babel+core@7.18.6:
resolution: {integrity: sha512-Mz7xMPxoy9kPS/JScj6fJs03TZ/fZ1dJPlMjRAgTaxaS0fUBk8FV/A2rRgfPsVCZqALNwMexD+0Uaf5zlcKPpw==}
engines: {node: '>=6.9.0'}