solid-v2/with-tsrx: route modules are .tsrx too - #294
Conversation
…0.3.0 analyzes TSRX route exports through @tsrx/oxc, so the whole app (zero non-test .tsx) is authored in TSRX
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Summary
Removes the last
.tsx-with-JSX holdout from the TSRX template: all 4 route modules (index,users,users/[id],[...404]) are now idiomatic.tsrx(statement-container bodies;routeconfig exports stay plain top-level TypeScript). The app now has zero non-test.tsxfiles.Enabled by
filesystem-routing@0.3.0(solidjs/filesystem-routing#8): the route export analyzer routes by filename —.tsrxmodules parse through@tsrx/oxc's parser facade (an optional peer, loaded lazily), everything else keeps the exactoxc-parserpath — andtsrxjoined the Vite adapter's default extensions.filesystem-routing0.2.1→0.3.0;@tsrx/oxcadded as a devDependency (the optional peer that powers.tsrxroute analysis)filesystem-routingadded tominimumReleaseAgeExclude(Solid-family lockstep, per the existing comment's rationale).tsxconstraint documentation is removed (no longer true)file-routes.d.tsregenerated:.tsrxrefs use the generic fallback (same as.md/.mdx) since plaintypeof importcan't resolve the extension;tsrx-tscpassesNote:
@tsrx/oxcships its ownoxlintbin; the stockoxlintpackage's own bin wins innode_modules/.bin, sopnpm lintbehavior is unchanged (verified 1.79.0).Verification (full bar)
pnpm installclean;vite buildgreen — routes code-split per module, scoped CSS extractedvitest3/3,oxlintclean,tsrx-tsc --noEmitclean.tsrxroute renders, scoped CSS applies, client-side nav home →/users→/users/1→/users/2(query preload data loads),[...404].tsrxrenders, HMR edit onindex.tsrxhot-applies without full reload, no console errorsMade with Cursor