@@ -48,23 +48,30 @@ export default function rollup(options: RollupOptions): RollupOptions[] {
4848 jsName : 'QueryAsyncStoragePersister' ,
4949 outputFile : 'query-async-storage-persister' ,
5050 entryFile : 'src/index.ts' ,
51- globals : { } ,
51+ globals : {
52+ '@tanstack/react-query-persist-client' : 'ReactQueryPersistClient' ,
53+ } ,
5254 } ) ,
5355 ...buildConfigs ( {
5456 name : 'query-broadcast-client-experimental' ,
5557 packageDir : 'packages/query-broadcast-client-experimental' ,
5658 jsName : 'QueryBroadcastClient' ,
5759 outputFile : 'query-broadcast-client-experimental' ,
5860 entryFile : 'src/index.ts' ,
59- globals : { } ,
61+ globals : {
62+ '@tanstack/query-core' : 'QueryCore' ,
63+ 'broadcast-channel' : 'BroadcastChannel' ,
64+ } ,
6065 } ) ,
6166 ...buildConfigs ( {
6267 name : 'query-sync-storage-persister' ,
6368 packageDir : 'packages/query-sync-storage-persister' ,
6469 jsName : 'QuerySyncStoragePersister' ,
6570 outputFile : 'query-sync-storage-persister' ,
6671 entryFile : 'src/index.ts' ,
67- globals : { } ,
72+ globals : {
73+ '@tanstack/react-query-persist-client' : 'ReactQueryPersistClient' ,
74+ } ,
6875 } ) ,
6976 ...buildConfigs ( {
7077 name : 'react-query' ,
@@ -74,6 +81,7 @@ export default function rollup(options: RollupOptions): RollupOptions[] {
7481 entryFile : 'src/index.ts' ,
7582 globals : {
7683 react : 'React' ,
84+ '@tanstack/query-core' : 'QueryCore' ,
7785 } ,
7886 } ) ,
7987 ...buildConfigs ( {
@@ -146,9 +154,9 @@ function esm({ input, packageDir, external, banner }: Options): RollupOptions {
146154 input,
147155 output : {
148156 format : 'esm' ,
149- entryFileNames : " [name].mjs" ,
157+ entryFileNames : ' [name].mjs' ,
150158 sourcemap : true ,
151- dir : `${ packageDir } /build/esm ` ,
159+ dir : `${ packageDir } /build/lib ` ,
152160 banner,
153161 } ,
154162 plugins : [
@@ -168,8 +176,7 @@ function cjs({ input, external, packageDir, banner }: Options): RollupOptions {
168176 output : {
169177 format : 'cjs' ,
170178 sourcemap : true ,
171- dir : `${ packageDir } /build/cjs` ,
172- preserveModules : true ,
179+ dir : `${ packageDir } /build/lib` ,
173180 exports : 'named' ,
174181 banner,
175182 } ,
0 commit comments