@astrojs/react
Advanced tools
Comparing version 0.0.0-experimental-assets-20230307131344 to 0.0.0-middleware-20230331181015
# @astrojs/react | ||
## 0.0.0-experimental-assets-20230307131344 | ||
## 0.0.0-middleware-20230331181015 | ||
### Patch Changes | ||
- [#6698](https://github.com/withastro/astro/pull/6698) [`fc71c3f18`](https://github.com/withastro/astro/commit/fc71c3f18819ac3ad62809a7eeff5fe7840f2c4b) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Update React README to reference the [new React docs](https://react.dev) | ||
- [#6696](https://github.com/withastro/astro/pull/6696) [`239b9a2fb`](https://github.com/withastro/astro/commit/239b9a2fb864fa785e4150cd8aa833de72dd3517) Thanks [@matthewp](https://github.com/matthewp)! - Add use-immer as a noExternal module | ||
## 2.1.0 | ||
### Minor Changes | ||
@@ -6,0 +14,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { AstroIntegration } from 'astro'; | ||
import type { AstroIntegration } from 'astro'; | ||
export default function (): AstroIntegration; |
@@ -18,2 +18,6 @@ import { version as ReactVersion } from "react-dom"; | ||
runtime: "automatic", | ||
// This option tells the JSX transform how to construct the "*/jsx-runtime" import. | ||
// In React v17, we had to shim this due to an export map issue in React. | ||
// In React v18, this issue was fixed and we can import "react/jsx-runtime" directly. | ||
// See `./jsx-runtime.js` for more details. | ||
importSource: ReactVersion.startsWith("18.") ? "react" : "@astrojs/react" | ||
@@ -47,5 +51,7 @@ } | ||
noExternal: [ | ||
// These are all needed to get mui to work. | ||
"@mui/material", | ||
"@mui/base", | ||
"@babel/runtime" | ||
"@babel/runtime", | ||
"use-immer" | ||
] | ||
@@ -52,0 +58,0 @@ } |
{ | ||
"name": "@astrojs/react", | ||
"description": "Use React components within Astro", | ||
"version": "0.0.0-experimental-assets-20230307131344", | ||
"version": "0.0.0-middleware-20230331181015", | ||
"type": "module", | ||
@@ -38,4 +38,4 @@ "types": "./dist/index.d.ts", | ||
"@types/react-dom": "^17.0.17", | ||
"astro": "0.0.0-experimental-assets-20230307131344", | ||
"astro-scripts": "0.0.0-experimental-assets-20230307131344", | ||
"astro": "0.0.0-middleware-20230331181015", | ||
"astro-scripts": "0.0.14", | ||
"react": "^18.1.0", | ||
@@ -42,0 +42,0 @@ "react-dom": "^18.1.0" |
# @astrojs/react ⚛️ | ||
This **[Astro integration][astro-integration]** enables server-side rendering and client-side hydration for your [React](https://reactjs.org/) components. | ||
This **[Astro integration][astro-integration]** enables server-side rendering and client-side hydration for your [React](https://react.dev/) components. | ||
@@ -5,0 +5,0 @@ ## Installation |
@@ -1,2 +0,2 @@ | ||
import { AstroIntegration } from 'astro'; | ||
import type { AstroIntegration } from 'astro'; | ||
import { version as ReactVersion } from 'react-dom'; | ||
@@ -69,2 +69,3 @@ | ||
'@babel/runtime', | ||
'use-immer', | ||
], | ||
@@ -71,0 +72,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33526
482