Open History to see the last commit
1# TanStack React Query Webpack 5 Integration
2β
3Checks that `@tanstack/react-query` and `@tanstack/react-query-devtools` build and type-check with webpack 5.
4β
5## What it checks
6β
7- `src/index.tsx` renders the app inside `React.StrictMode` and `QueryClientProvider` together with `ReactQueryDevtools`, and `src/App.tsx` reads a query with `useQuery`.
8- `webpack.config.js` compiles `src/index.tsx` with `babel-loader` 9 and the `@babel/preset-env`, `@babel/preset-react`, and `@babel/preset-typescript` presets, and generates `index.html` with `html-webpack-plugin` 5.
9- `tsconfig.json` sets `moduleResolution: "Bundler"`.
10- CI runs the `build` (`webpack --mode production`) and `test:types` (`tsc --noEmit`) scripts.
11β
12To run it from the repository root:
13β
14- `pnpm nx run @tanstack/query-integration-react-webpack-5:build`
15- `pnpm nx run @tanstack/query-integration-react-webpack-5:test:types`