* chore(router-plugin): add `babel-dead-code-elimination`
* feat(router-plugin): initial implementation
* chore(router-plugin): better test scripts
* test(router-plugin): check it with the new functions
* fix(start-vite-plugin): add vite
* feat(router-plugin): bump unplugin
* fix(router-plugin): making sure it works
* chore(router-plugin): cleanup
* chore(router-plugin): delete "eliminateUnreferencedIdentifiers.ts"
* fix(router-plugin): esm problems
* chore(router-plugin): restore minification for production
* chore(start-vite-plugin): undo the vite
* Bump vite
* pnpm dedupe
* test(router-plugin): bit of renaming here
---------
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
* test(router-plugin): tests for the route-items being wrapped in React.memo
* fix(router-plugin): React.memo breaks the codesplitting
* test(router-plugin): snapshots for the React.memo stuff
* refactor(router-plugin): variable naming is hard 😅
* chore(router-plugin): whoops
* refactor(router-plugin): use the helpers
* fix(router-plugin): unnecessarily importing items that should be eliminated
* fix(router-plugin): update snapshots
* fix(router-plugin): same treatment for loaders
* test(router-plugin): update snapshots
* style(router-plugin): eslint
* refactor(router-plugin): use guard clauses
* perf(router-plugin): reduce the double traversals being done here
* test(router-plugin): starting point
* fix(router-plugin): fix default imported components
* test(router-plugin): test case for there being both a default component import and a destructured loader import
* chore(router-plugin): cleanup of my testing test file...
* feat: setup the starter for an rspack integration
* refactor(router-plugin): compose the plugins toghether
* feat(router-plugin): initial export for rspack
* docs(examples): add the quickstart-file-based pages in
* feat(router-plugin): generator should generate the route-tree on startup
* feat(examples): use the route-tree
* feat(router-plugin): router-generator working
* feat(router-plugin): rspack support only for the generator
* refactor(router-plugin): make the rspack exports a bit cleaner
* chore(router-plugin): jsdocs for the vite plugin
* docs(router-plugin): update with references and mentions to rspack/rsbuild
* style(router-plugin): eslint import ordering 😭
* perf(react-router): remove router context from every route apart from the root
From my understanding, TRouterContext is only relevant to the RootRoute and is not relevant to each route
* perf: remove TParentRoute from file route options, infer lazily from parent and fix merging of context in beforeLoad/loader
* tests: add type tests for root route merging of context and buildLocation
* tests: add more tests and cleanup
* Add test case for linking with from prop and a param containing slash
* Remove .only from test
* fix: encode pathname in match
* refactor: move encoded params to interpolatePath
---------
Co-authored-by: Jakob Norlin <jakob.stahl91@gmail.com>
Co-authored-by: chorobin <chrishorobin@hotmail.com>