summaryrefslogtreecommitdiff
path: root/packages/integrations/react/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/react/src/index.ts')
-rw-r--r--packages/integrations/react/src/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/integrations/react/src/index.ts b/packages/integrations/react/src/index.ts
index d5f696522..e4b977880 100644
--- a/packages/integrations/react/src/index.ts
+++ b/packages/integrations/react/src/index.ts
@@ -7,6 +7,7 @@ export type ReactIntegrationOptions = Pick<ViteReactPluginOptions, 'include' | '
experimentalReactChildren?: boolean;
};
+// @ts-expect-error
const FAST_REFRESH_PREAMBLE = react.preambleCode;
function getRenderer() {
@@ -65,6 +66,7 @@ function getViteConfiguration({
: '@astrojs/react/server-v17.js',
],
},
+ // @ts-expect-error
plugins: [react({ include, exclude }), optionsPlugin(!!experimentalReactChildren)],
resolve: {
dedupe: ['react', 'react-dom', 'react-dom/server'],