0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/examples/react/quickstart-webpack-file-based
Sheraff 766769b4fc
Merge origin/main into compiler-rewrite/yuku
main c156097786: #8858, #8863, #8805, #8269, #8866, #8867, #8868, #8869,
#8870, #8871, #8876, #8888, #8889, #8890, #8892, Version Packages
(#8854, #8891) and docs.

- #8817's side and deletions throughout (Babel compilers, start-compiler,
  add-hmr, start-app.ts, server-fn-id-check.ts, router-utils ast.ts).
  The lines main changed for #8863, #8866, #8868, #8269 and #8889/#8892
  stay #8817's here: their fixes follow as separate commits after the
  tests that reproduce them.
- @rsbuild/core 2.3.1 (#8890) in the catalog, the examples and
  benchmarks/compiler-perf; Start's peers keep #8817's ^2.2.13 floor.
  Lockfile and e2e/react-start/basic's route tree regenerated.
- Tests: main's start-vite-root, start-rsbuild-root, rsbuild
  server-compress and router-plugin production-warnings tests are
  replaced by their ports in the harness (start-build-roots,
  dev-server-config, production-bundle); main's start-dev-restart test
  is ported to the dev-server harness and replaces resolve-entries.test.ts
  (internals). #8817's Rsbuild SPA dev case gives way to main's
  spa-shell e2e. The route HMR `hot` binding test gains main's unsplit
  case (#8870).
- KNOWN-BUGS: main fixed decorators after `export` (#8867) and the
  Rsbuild sibling-route manifest (#8780, #8876).
- Changesets: drop what main ships now (custom server-fn ids, the Rsbuild
  manifest and SPA/compress items, exsolve, Vue store pre-bundling,
  falsy `use` entries, `.ts` route HMR).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-11-08 12:12:53 +01:00
..
.devcontainer docs: add devcontainer.json to all e2e/examples (#6972) 2026-03-18 15:43:14 +01:00
.vscode chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
public chore(e2e,examples): tailwindcss v4 (#3235) 2025-01-26 17:50:21 +13:00
src chore(examples): regenerate route trees through the example builds 2026-10-26 13:18:57 +01:00
.gitignore chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
.swcrc fix(router-plugin): add webpack support and resolve rspack code-splitting blockers (#1864) 2024-07-03 19:42:45 +12:00
package.json ci: Version Packages (#8854) 2026-11-08 02:00:36 +01:00
README.md docs(examples): standardize the READMEs for the React examples (#6014) 2025-12-07 01:39:44 +13:00
tsconfig.json chore: add typescript to all examples, update tsconfig for one-click deploys 2024-11-22 13:18:52 -07:00
webpack.config.js rsbuild plugin (#7228) 2026-04-24 03:26:03 +02:00

TanStack Router - Webpack File-Based Quickstart

A quickstart example using Webpack as the bundler with file-based routing.

Start a new project based on this example

To start a new project based on this example, run:

npx gitpick TanStack/router/tree/main/examples/react/quickstart-webpack-file-based quickstart-webpack-file-based

Getting Started

Install dependencies:

pnpm install

Start the development server:

pnpm dev

Build

Build for production:

pnpm build

About This Example

This example demonstrates:

  • Webpack bundler integration
  • File-based routing
  • Traditional bundler setup
  • Webpack configuration for TanStack Router