@@ -83,8 +83,12 @@ export default function rollup(options: RollupOptions): RollupOptions[] {
8383 react : 'React' ,
8484 'react-dom' : 'ReactDOM' ,
8585 '@tanstack/query-core' : 'QueryCore' ,
86+ 'use-sync-external-store/shim/index.js' : 'UseSyncExternalStore' ,
8687 } ,
87- bundleUMDGlobals : [ '@tanstack/query-core' ] ,
88+ bundleUMDGlobals : [
89+ '@tanstack/query-core' ,
90+ 'use-sync-external-store/shim/index.js' ,
91+ ] ,
8892 } ) ,
8993 ...buildConfigs ( {
9094 name : 'react-query-devtools' ,
@@ -94,8 +98,15 @@ export default function rollup(options: RollupOptions): RollupOptions[] {
9498 entryFile : 'src/index.ts' ,
9599 globals : {
96100 react : 'React' ,
101+ 'react-dom' : 'ReactDOM' ,
97102 '@tanstack/react-query' : 'ReactQuery' ,
103+ '@tanstack/match-sorter-utils' : 'MatchSorterUtils' ,
104+ 'use-sync-external-store/shim/index.js' : 'UseSyncExternalStore' ,
98105 } ,
106+ bundleUMDGlobals : [
107+ '@tanstack/match-sorter-utils' ,
108+ 'use-sync-external-store/shim/index.js' ,
109+ ] ,
99110 } ) ,
100111 ...buildConfigs ( {
101112 name : 'react-query-devtools-noop' ,
@@ -154,7 +165,12 @@ function buildConfigs(opts: {
154165 globals : opts . globals ,
155166 }
156167
157- return [ esm ( options ) , cjs ( options ) , umdDev ( { ...options , external : umdExternal } ) , umdProd ( { ...options , external : umdExternal } ) ]
168+ return [
169+ esm ( options ) ,
170+ cjs ( options ) ,
171+ umdDev ( { ...options , external : umdExternal } ) ,
172+ umdProd ( { ...options , external : umdExternal } ) ,
173+ ]
158174}
159175
160176function esm ( { input, packageDir, external, banner } : Options ) : RollupOptions {
0 commit comments