diff --git a/.changeset/red-wasps-film.md b/.changeset/red-wasps-film.md new file mode 100644 index 000000000000..79000f8b15cd --- /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 262010f51864..379fb28210d8 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 969571f5835c..7ab759ab79d5 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 d4070c8da09e..39b0ec2b986c 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'}