integrations/react/webpack-4
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
TanStack React Query Webpack 4 Integration#
Checks that @tanstack/react-query and @tanstack/react-query-devtools build and type-check with webpack 4.
What it checks#
src/index.tsxrenders the app insideReact.StrictModeandQueryClientProvidertogether withReactQueryDevtools, andsrc/App.tsxreads a query withuseQuery.webpack.config.jscompilessrc/index.tsxwithbabel-loader8 and the@babel/preset-env,@babel/preset-react, and@babel/preset-typescriptpresets, and generatesindex.htmlwithhtml-webpack-plugin4.- The
buildscript setsNODE_OPTIONS=--openssl-legacy-providerfor webpack 4. tsconfig.jsonsetsmoduleResolution: "Node10"withignoreDeprecations: "6.0".- CI runs the
build(webpack --mode production) andtest:types(tsc --noEmit) scripts.
To run it from the repository root:
pnpm nx run @tanstack/query-integration-react-webpack-4:buildpnpm nx run @tanstack/query-integration-react-webpack-4:test:types