summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2022-07-14 14:39:58 -0400
committerGravatar GitHub <noreply@github.com> 2022-07-14 14:39:58 -0400
commitd6dfef0caa25f4effd0ed548d92ff48ce7a39ab2 (patch)
treeaedaab8f6014de05943cb2d94ef490ef3ea9a3d9
parent7c5c4106d7b9d73103eb6e899f39125e630280ff (diff)
downloadastro-d6dfef0caa25f4effd0ed548d92ff48ce7a39ab2.tar.gz
astro-d6dfef0caa25f4effd0ed548d92ff48ce7a39ab2.tar.zst
astro-d6dfef0caa25f4effd0ed548d92ff48ce7a39ab2.zip
Add @babel/core dependencies to react/preact integrations (#3928)
* Add @babel/core dependencies * Adds a changeset
-rw-r--r--.changeset/red-wasps-film.md6
-rw-r--r--packages/integrations/preact/package.json1
-rw-r--r--packages/integrations/react/package.json1
-rw-r--r--pnpm-lock.yaml24
4 files changed, 14 insertions, 18 deletions
diff --git a/.changeset/red-wasps-film.md b/.changeset/red-wasps-film.md
new file mode 100644
index 000000000..79000f8b1
--- /dev/null
+++ b/.changeset/red-wasps-film.md
@@ -0,0 +1,6 @@
+---
+'@astrojs/preact': patch
+'@astrojs/react': patch
+---
+
+Removes @babel/core peerDependency warning
diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json
index 262010f51..379fb2821 100644
--- a/packages/integrations/preact/package.json
+++ b/packages/integrations/preact/package.json
@@ -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"
diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json
index 969571f58..7ab759ab7 100644
--- a/packages/integrations/react/package.json
+++ b/packages/integrations/react/package.json
@@ -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": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d4070c8da..39b0ec2b9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -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'}