mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
3a4dc9e0a7
* First pass at supporting React 18 in @astrojs/react
* Try marking React 18’s `react-dom/client` as external
* Try a different approach to importing different React versions
* Allow resolving JSON modules
* Revert "Allow resolving JSON modules"
This reverts commit 5279b7249c
.
* Try the separate client entrypoint approach from #2946
* Clean up diff
* Trying to see something
* Just keep swimming… 🐠
* update to support react 18
* update React to React 18 across the board
Co-authored-by: delucis <swithinbank@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
31 lines
813 B
JSON
31 lines
813 B
JSON
{
|
|
"name": "@astrojs/renderer-react",
|
|
"description": "Use React components within Astro",
|
|
"version": "0.5.0",
|
|
"type": "module",
|
|
"author": "withastro",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/withastro/astro.git",
|
|
"directory": "packages/renderers/renderer-react"
|
|
},
|
|
"bugs": "https://github.com/withastro/astro/issues",
|
|
"homepage": "https://astro.build",
|
|
"exports": {
|
|
".": "./index.js",
|
|
"./*": "./*",
|
|
"./client.js": "./client.js",
|
|
"./server.js": "./server.js",
|
|
"./package.json": "./package.json",
|
|
"./jsx-runtime": "./jsx-runtime.js"
|
|
},
|
|
"dependencies": {
|
|
"@babel/plugin-transform-react-jsx": "^7.17.3",
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0"
|
|
},
|
|
"engines": {
|
|
"node": "^14.15.0 || >=16.0.0"
|
|
}
|
|
}
|