diff --git a/docs/build.md b/docs/build.md index 34a70c8..a86324e 100644 --- a/docs/build.md +++ b/docs/build.md @@ -34,7 +34,7 @@ The build config is quite opinionated, as it is designed to work with our intern } ``` -# ## vite.config.ts +## vite.config.ts ```ts import { defineConfig, mergeConfig } from 'vite' @@ -51,6 +51,10 @@ export default mergeConfig( ) ``` +## tsconfig.json + +- Ensure your `"include"` field includes `"vite.config.ts"`. + # Caveats While this config _will_ work with most frameworks with a Vite adapter, it doesn't mean you _should_ use it for all frameworks. For instance, Svelte publishes [@sveltejs/package](https://www.npmjs.com/package/@sveltejs/package), and Angular publishes [ng-packagr](https://www.npmjs.com/package/ng-packagr). When a framework-specific build tool exists, this should be preferred. diff --git a/integrations/react/tsconfig.json b/integrations/react/tsconfig.json index 6d545f5..df3be2d 100644 --- a/integrations/react/tsconfig.json +++ b/integrations/react/tsconfig.json @@ -20,5 +20,5 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] + "include": ["src", "vite.config.ts"] }