Skip to content

Commit a6df794

Browse files
committed
fix(devtools): import useQueryClient directly from react-query
try to silence the rollup build warnings about react-query not found when building the devtools
1 parent 79ce505 commit a6df794

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ import commonJS from 'rollup-plugin-commonjs'
77
import visualizer from 'rollup-plugin-visualizer'
88
import replace from '@rollup/plugin-replace'
99

10-
const external = ['react', 'react-dom']
10+
const external = ['react', 'react-dom', 'react-query']
1111

1212
const globals = {
1313
react: 'React',
1414
'react-dom': 'ReactDOM',
15+
'react-query': 'ReactQuery',
1516
}
1617

1718
const inputSrcs = [

0 commit comments

Comments
 (0)