Skip to content

Commit 591f045

Browse files
committed
tested on other packages
1 parent 787f2e0 commit 591f045

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

package-react/react-examples-tanstack/pagination/src/pages/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import React from 'react'
24
import axios from 'axios'
35
import {
@@ -8,15 +10,15 @@ import {
810
keepPreviousData,
911
} from '@tanstack/react-query'
1012
import { ReactQueryDevtools } from '@tanstack/react-query-devtools'
11-
// import ReactQueryRewind from 'react-query-rewind'
13+
import ReactQueryRewind from 'react-query-rewind'
1214

1315
const queryClient = new QueryClient()
1416

1517
export default function App() {
1618
return (
1719
<QueryClientProvider client={queryClient}>
1820
<Example />
19-
{/* <ReactQueryRewind /> */}
21+
<ReactQueryRewind />
2022
</QueryClientProvider>
2123
)
2224
}

package-react/rollup.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export default {
2828
commonjs(), // Converts CommonJS modules to ES6
2929
typescript({ tsconfig: './tsconfig.json' }), // TypeScript plugin
3030
babel({
31-
exclude: 'node_modules/**', // Babel for transpiling React and ES6
32-
presets: ['@babel/preset-react']
31+
babelHelpers: 'bundled',
32+
extensions: ['.js', '.jsx', '.ts', '.tsx'], // add this if you're using TypeScript
33+
exclude: 'node_modules/**'
3334
}),
3435
terser(), // Minifies the bundles
3536
]

0 commit comments

Comments
 (0)