@astrojs/react
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,2 +0,1 @@ | ||
import { appendForwardSlash } from "@astrojs/internal-helpers/path"; | ||
import react, {} from "@vitejs/plugin-react"; | ||
@@ -76,3 +75,3 @@ import { version as ReactVersion } from "react-dom"; | ||
hooks: { | ||
"astro:config:setup": ({ config, command, addRenderer, updateConfig, injectScript }) => { | ||
"astro:config:setup": ({ command, addRenderer, updateConfig, injectScript }) => { | ||
addRenderer(getRenderer()); | ||
@@ -83,6 +82,3 @@ updateConfig({ | ||
if (command === "dev") { | ||
const preamble = FAST_REFRESH_PREAMBLE.replace( | ||
`__BASE__`, | ||
appendForwardSlash(config.base) | ||
); | ||
const preamble = FAST_REFRESH_PREAMBLE.replace(`__BASE__`, "/"); | ||
injectScript("before-hydration", preamble); | ||
@@ -89,0 +85,0 @@ } |
{ | ||
"name": "@astrojs/react", | ||
"description": "Use React components within Astro", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"type": "module", | ||
@@ -43,3 +43,2 @@ "types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"@astrojs/internal-helpers": "0.2.0", | ||
"@vitejs/plugin-react": "^4.0.4", | ||
@@ -56,3 +55,3 @@ "ultrahtml": "^1.3.0" | ||
"vite": "^4.4.9", | ||
"astro": "3.0.0", | ||
"astro": "3.0.9", | ||
"astro-scripts": "0.0.14" | ||
@@ -59,0 +58,0 @@ }, |
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
6
26303
506
- Removed@astrojs/internal-helpers@0.2.0
- Removed@astrojs/internal-helpers@0.2.0(transitive)