Title: React Compiler + TypeScript example should run compiler on `.ts` files as well as `.tsx` · Issue #331 · rstackjs/rstack-examples · GitHub
Open Graph Title: React Compiler + TypeScript example should run compiler on `.ts` files as well as `.tsx` · Issue #331 · rstackjs/rstack-examples
X Title: React Compiler + TypeScript example should run compiler on `.ts` files as well as `.tsx` · Issue #331 · rstackjs/rstack-examples
Description: Regarding this example: https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/react-compiler-babel-ts/rspack.config.js This only runs the compiler on .tsx files, however hooks are commonly defined in .ts files, so the compil...
Open Graph Description: Regarding this example: https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/react-compiler-babel-ts/rspack.config.js This only runs the compiler on .tsx files, however hooks are comm...
X Description: Regarding this example: https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/react-compiler-babel-ts/rspack.config.js This only runs the compiler on .tsx files, however hooks are comm...
Opengraph URL: https://github.com/rstackjs/rstack-examples/issues/331
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"React Compiler + TypeScript example should run compiler on `.ts` files as well as `.tsx`","articleBody":"Regarding this example: https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/react-compiler-babel-ts/rspack.config.js\n\nThis only runs the compiler on `.tsx` files, however hooks are commonly defined in `.ts` files, so the compiler should be applied to those as well.\n\ncc @chenjiahan","author":{"url":"https://github.com/OliverJAsh","@type":"Person","name":"OliverJAsh"},"datePublished":"2025-08-14T15:44:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/331/rstack-examples/issues/331"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:eed9f745-27bd-2c21-59c1-988eec791916 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5C4:3F92AD:EB4A01:1491A8D:69725E94 |
| html-safe-nonce | 35e260c3dd6c80b14ba8f43770b642f623148d1e39aeb69da0808a3a1a0a6f24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUM0OjNGOTJBRDpFQjRBMDE6MTQ5MUE4RDo2OTcyNUU5NCIsInZpc2l0b3JfaWQiOiI0NDUyODE0Mzc2NzU4NTY2NTQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a6e629d00c8f464ee64f9afaacdc1ff74665e3748bc83cfc7a2990ddb1c05723 |
| hovercard-subject-tag | issue:3322688081 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rstackjs/rstack-examples/331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db3d3284067d9ae6e4eaa3a91f7c7b1f4882c6da21fc89262e85733494798899/rstackjs/rstack-examples/issues/331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db3d3284067d9ae6e4eaa3a91f7c7b1f4882c6da21fc89262e85733494798899/rstackjs/rstack-examples/issues/331 |
| og:image:alt | Regarding this example: https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/react-compiler-babel-ts/rspack.config.js This only runs the compiler on .tsx files, however hooks are comm... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | OliverJAsh |
| hostname | github.com |
| expected-hostname | github.com |
| None | ab2c8e6ec49d8737f6bf007a86b2c4a2bc434bba562c524e0c76465bc9ed358b |
| turbo-cache-control | no-preview |
| go-import | github.com/rstackjs/rstack-examples git https://github.com/rstackjs/rstack-examples.git |
| octolytics-dimension-user_id | 129049372 |
| octolytics-dimension-user_login | rstackjs |
| octolytics-dimension-repository_id | 721103420 |
| octolytics-dimension-repository_nwo | rstackjs/rstack-examples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 721103420 |
| octolytics-dimension-repository_network_root_nwo | rstackjs/rstack-examples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 52bb8e0c9f4e51b63385b80feac0e6ba25e8dbd5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width