Skip to content

🎥 Make videos programmatically with React

Scope Astro build TypeScript resolution to the example

JonnyBurger3405299f280e
diff --git a/packages/astro-example/astro.config.mjs b/packages/astro-example/astro.config.mjs
index a5ac14439e..782b65f66f 100644
--- a/packages/astro-example/astro.config.mjs
+++ b/packages/astro-example/astro.config.mjs
@@ -5,4 +5,15 @@ import {defineConfig} from 'astro/config';
export default defineConfig({
// Enable React to support React JSX components.
integrations: [react()],
+ vite: {
+ build: {
+ rolldownOptions: {
+ tsconfig: './tsconfig.json',
+ },
+ },
+ resolve: {
+ // This example uses package imports, not monorepo tsconfig path aliases.
+ tsconfigPaths: false,
+ },
+ },
});