Add @babel/core dependencies to react/preact integrations (#3928)
* Add @babel/core dependencies * Adds a changeset
This commit is contained in:
parent
7c5c4106d7
commit
d6dfef0caa
4 changed files with 14 additions and 18 deletions
6
.changeset/red-wasps-film.md
Normal file
6
.changeset/red-wasps-film.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
'@astrojs/preact': patch
|
||||||
|
'@astrojs/react': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Removes @babel/core peerDependency warning
|
|
@ -31,6 +31,7 @@
|
||||||
"dev": "astro-scripts dev \"src/**/*.ts\""
|
"dev": "astro-scripts dev \"src/**/*.ts\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@babel/core": ">=7.0.0-0 <8.0.0",
|
||||||
"@babel/plugin-transform-react-jsx": "^7.17.12",
|
"@babel/plugin-transform-react-jsx": "^7.17.12",
|
||||||
"babel-plugin-module-resolver": "^4.1.0",
|
"babel-plugin-module-resolver": "^4.1.0",
|
||||||
"preact-render-to-string": "^5.2.0"
|
"preact-render-to-string": "^5.2.0"
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
"dev": "astro-scripts dev \"src/**/*.ts\""
|
"dev": "astro-scripts dev \"src/**/*.ts\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@babel/core": ">=7.0.0-0 <8.0.0",
|
||||||
"@babel/plugin-transform-react-jsx": "^7.17.12"
|
"@babel/plugin-transform-react-jsx": "^7.17.12"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -2079,6 +2079,7 @@ importers:
|
||||||
|
|
||||||
packages/integrations/preact:
|
packages/integrations/preact:
|
||||||
specifiers:
|
specifiers:
|
||||||
|
'@babel/core': '>=7.0.0-0 <8.0.0'
|
||||||
'@babel/plugin-transform-react-jsx': ^7.17.12
|
'@babel/plugin-transform-react-jsx': ^7.17.12
|
||||||
astro: workspace:*
|
astro: workspace:*
|
||||||
astro-scripts: workspace:*
|
astro-scripts: workspace:*
|
||||||
|
@ -2086,7 +2087,8 @@ importers:
|
||||||
preact: ^10.7.3
|
preact: ^10.7.3
|
||||||
preact-render-to-string: ^5.2.0
|
preact-render-to-string: ^5.2.0
|
||||||
dependencies:
|
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
|
babel-plugin-module-resolver: 4.1.0
|
||||||
preact-render-to-string: 5.2.0_preact@10.9.0
|
preact-render-to-string: 5.2.0_preact@10.9.0
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
@ -2123,6 +2125,7 @@ importers:
|
||||||
|
|
||||||
packages/integrations/react:
|
packages/integrations/react:
|
||||||
specifiers:
|
specifiers:
|
||||||
|
'@babel/core': '>=7.0.0-0 <8.0.0'
|
||||||
'@babel/plugin-transform-react-jsx': ^7.17.12
|
'@babel/plugin-transform-react-jsx': ^7.17.12
|
||||||
'@types/react': ^17.0.45
|
'@types/react': ^17.0.45
|
||||||
'@types/react-dom': ^17.0.17
|
'@types/react-dom': ^17.0.17
|
||||||
|
@ -2131,7 +2134,8 @@ importers:
|
||||||
react: ^18.1.0
|
react: ^18.1.0
|
||||||
react-dom: ^18.1.0
|
react-dom: ^18.1.0
|
||||||
dependencies:
|
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:
|
devDependencies:
|
||||||
'@types/react': 17.0.47
|
'@types/react': 17.0.47
|
||||||
'@types/react-dom': 17.0.17
|
'@types/react-dom': 17.0.17
|
||||||
|
@ -3779,22 +3783,6 @@ packages:
|
||||||
'@babel/helper-plugin-utils': 7.18.6
|
'@babel/helper-plugin-utils': 7.18.6
|
||||||
dev: true
|
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:
|
/@babel/plugin-transform-react-jsx/7.18.6_@babel+core@7.18.6:
|
||||||
resolution: {integrity: sha512-Mz7xMPxoy9kPS/JScj6fJs03TZ/fZ1dJPlMjRAgTaxaS0fUBk8FV/A2rRgfPsVCZqALNwMexD+0Uaf5zlcKPpw==}
|
resolution: {integrity: sha512-Mz7xMPxoy9kPS/JScj6fJs03TZ/fZ1dJPlMjRAgTaxaS0fUBk8FV/A2rRgfPsVCZqALNwMexD+0Uaf5zlcKPpw==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
|
|
Loading…
Reference in a new issue