* Simplify json implementation and fix headers handling
* set up tests for start package
* Fix ssr script test
* Add test for json helper
* name test script consistently
* add name and watch options to test config
* add test script
* don't override existing Content-Type header
* Fix type of serverOnly and add clientOnly function
* Replace invalid invariant call with throwing an error, and support clientOnly
* only build handlers once and reuse
* write type test and make linter happy
* Add snapshot testing for serverOnly and clientOnly
* Write e2e tests
* use a single source of truth for tokens to transform and do dead code elimination after
* tests(react-router): add test for `preload` flag of `beforeLoad` and `loader`
* fix: preloads
* fix: simplify preload resolution
* fix missing !
---------
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
* adding a test to verify that json config files are reflected correctly
* clean up
* direct testing config
* ci: apply automated fixes
---------
Co-authored-by: David Turissini <davidturissini@Melissas-MacBook-Air.local>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Set up types for createIsomorphicFn
* do dead code analysis for serverOnly and createIsomorphicFn too
* add createIsomorphicFn to relevant regexes
* Add test files
* fix test name
* Add createIsomorphicFn compiler handling
* check for presence/lack of properties
* Add e2e test for isomorphic functions
* test(e2e): add the derivePort utility
* test(e2e): use the utility on start-basic and start-website
* test(e2e): use the utility on the remaining start sandboxes
* test(e2e): use the utility on the react-router sandboxes
* test(e2e): remove unneeded script from `basic-esbuild-file-based`
* ensure that links and scripts are available on route, routes created with createFileRoute work routes created with createRoute did not
* test(react-router): check for head fn update
---------
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
* feat(router-generator): define virtual routes using a `route.ts` file
* refactor(router-generator): passing in the root
* feat(router-cli): passing in the root
* feat(router-plugin): passing in the root
* test(router-generator): check the functionality
* test(e2e): end-to-end test for named exports
* docs(router): update the docs
* docs(router): add file paths to the virtual guide
* docs: forgot to add this path
* Update docs/framework/react/guide/virtual-file-routes.md