{"library":"react-static-plugin-typescript","title":"React Static TypeScript Plugin","description":"The `react-static-plugin-typescript` package integrates TypeScript support into projects built with the React Static framework, enabling the use of `.ts` and `.tsx` files for components and application logic. The current stable version is 7.6.2. It operates by hooking into React Static's build pipeline to compile TypeScript code and offers an optional type-checking feature during compilation. This plugin is a core component for React Static users who prefer TypeScript for improved code maintainability and developer experience. Its release cadence is tightly coupled with the React Static framework's updates. Key differentiators include its seamless integration into the `static.config.js` file and its ability to toggle type-checking during development builds, providing flexibility for different workflow needs. The React Static ecosystem appears to be in a maintenance state, meaning this plugin follows a similar lifecycle.","language":"javascript","status":"maintenance","last_verified":"Sun Apr 19","install":{"commands":["npm install react-static-plugin-typescript"],"cli":null},"imports":["export default {\n  plugins: ['react-static-plugin-typescript'],\n}","export default {\n  plugins: [['react-static-plugin-typescript', { typeCheck: true }]],\n}"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install react-static-plugin-typescript @types/react --save-dev\n\n// static.config.js (in your project root)\nexport default {\n  plugins: [\n    // Add the TypeScript plugin, optionally with typeCheck enabled\n    ['react-static-plugin-typescript', { typeCheck: true }]\n  ],\n  // Other React Static configurations...\n}\n\n// tsconfig.json (in your project root)\n{\n  \"compilerOptions\": {\n    \"target\": \"es2015\",\n    \"module\": \"esnext\",\n    \"lib\": [\"es2015\", \"dom\"],\n    \"moduleResolution\": \"node\",\n    \"skipLibCheck\": true,\n    \"isolatedModules\": true,\n    \"noEmit\": true,\n    \"allowJs\": true,\n    \"jsx\": \"preserve\",\n    \"sourceMap\": true,\n    \"removeComments\": false,\n    \"strict\": true,\n    \"esModuleInterop\": true,\n    \"forceConsistentCasingInFileNames\": true\n  },\n  \"include\": [\"src\"],\n  \"exclude\": [\"node_modules\", \"dist\", \"build\"]\n}","lang":"typescript","description":"This quickstart demonstrates how to install the plugin, add it to your `static.config.js` with options for type checking, and configure a basic `tsconfig.json` for a new or existing React Static project using TypeScript.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}