summaryrefslogtreecommitdiff
path: root/packages/integrations/react
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/react')
-rw-r--r--packages/integrations/react/package.json12
-rw-r--r--packages/integrations/react/server-v17.js1
-rw-r--r--packages/integrations/react/server.d.ts2
-rw-r--r--packages/integrations/react/server.js1
-rw-r--r--packages/integrations/react/server17.d.ts2
5 files changed, 16 insertions, 2 deletions
diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json
index 5ea15729b..d35210710 100644
--- a/packages/integrations/react/package.json
+++ b/packages/integrations/react/package.json
@@ -24,8 +24,14 @@
"./actions": "./dist/actions.js",
"./client.js": "./client.js",
"./client-v17.js": "./client-v17.js",
- "./server.js": "./server.js",
- "./server-v17.js": "./server-v17.js",
+ "./server.js": {
+ "default": "./server.js",
+ "types": "./server.d.ts"
+ },
+ "./server-v17.js": {
+ "default": "./server-v17.js",
+ "types": "./server-v17.d.ts"
+ },
"./package.json": "./package.json",
"./jsx-runtime": "./jsx-runtime.js"
},
@@ -36,7 +42,9 @@
"context.js",
"jsx-runtime.js",
"server.js",
+ "server.d.ts",
"server-v17.js",
+ "server-v17.d.ts",
"static-html.js",
"vnode-children.js"
],
diff --git a/packages/integrations/react/server-v17.js b/packages/integrations/react/server-v17.js
index ad0c99622..16f6fcdcd 100644
--- a/packages/integrations/react/server-v17.js
+++ b/packages/integrations/react/server-v17.js
@@ -82,6 +82,7 @@ function renderToStaticMarkup(Component, props, { default: children, ...slotted
}
export default {
+ name: '@astrojs/react',
check,
renderToStaticMarkup,
supportsAstroStaticSlot: true,
diff --git a/packages/integrations/react/server.d.ts b/packages/integrations/react/server.d.ts
new file mode 100644
index 000000000..bb2f29556
--- /dev/null
+++ b/packages/integrations/react/server.d.ts
@@ -0,0 +1,2 @@
+import type { NamedSSRLoadedRendererValue } from 'astro';
+export default NamedSSRLoadedRendererValue;
diff --git a/packages/integrations/react/server.js b/packages/integrations/react/server.js
index c2b255853..59134a699 100644
--- a/packages/integrations/react/server.js
+++ b/packages/integrations/react/server.js
@@ -226,6 +226,7 @@ function isFormRequest(contentType) {
}
export default {
+ name: '@astrojs/react',
check,
renderToStaticMarkup,
supportsAstroStaticSlot: true,
diff --git a/packages/integrations/react/server17.d.ts b/packages/integrations/react/server17.d.ts
new file mode 100644
index 000000000..bb2f29556
--- /dev/null
+++ b/packages/integrations/react/server17.d.ts
@@ -0,0 +1,2 @@
+import type { NamedSSRLoadedRendererValue } from 'astro';
+export default NamedSSRLoadedRendererValue;