-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Split rollup config for Nx caching (#5487)
- Loading branch information
1 parent
02f5581
commit c5fece7
Showing
40 changed files
with
261 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// @ts-check | ||
|
||
import { defineConfig } from 'rollup' | ||
import { buildConfigs } from "../../scripts/getRollupConfig.mjs" | ||
|
||
export default defineConfig([ | ||
...buildConfigs({ | ||
name: 'query-async-storage-persister', | ||
packageDir: '.', | ||
jsName: 'QueryAsyncStoragePersister', | ||
outputFile: 'index', | ||
entryFile: 'src/index.ts', | ||
globals: { | ||
'@tanstack/query-persist-client-core': 'QueryPersistClientCore', | ||
}, | ||
}), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/query-broadcast-client-experimental/rollup.config.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// @ts-check | ||
|
||
import { defineConfig } from 'rollup' | ||
import { buildConfigs } from "../../scripts/getRollupConfig.mjs" | ||
|
||
export default defineConfig([ | ||
...buildConfigs({ | ||
name: 'query-broadcast-client-experimental', | ||
packageDir: '.', | ||
jsName: 'QueryBroadcastClient', | ||
outputFile: 'index', | ||
entryFile: 'src/index.ts', | ||
globals: { | ||
'@tanstack/query-core': 'QueryCore', | ||
'broadcast-channel': 'BroadcastChannel', | ||
}, | ||
}), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// @ts-check | ||
|
||
import { defineConfig } from 'rollup' | ||
import { buildConfigs } from "../../scripts/getRollupConfig.mjs" | ||
|
||
export default defineConfig([ | ||
...buildConfigs({ | ||
name: 'query-core', | ||
packageDir: '.', | ||
jsName: 'QueryCore', | ||
outputFile: 'index', | ||
entryFile: ['src/index.ts'], | ||
globals: {}, | ||
}), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// @ts-check | ||
|
||
import { defineConfig } from 'rollup' | ||
import { createTanstackQueryDevtoolsConfig } from "../../scripts/getRollupConfig.mjs" | ||
|
||
export default defineConfig([ | ||
createTanstackQueryDevtoolsConfig(), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// @ts-check | ||
|
||
import { defineConfig } from 'rollup' | ||
import { buildConfigs } from "../../scripts/getRollupConfig.mjs" | ||
|
||
export default defineConfig([ | ||
...buildConfigs({ | ||
name: 'query-persist-client-core', | ||
packageDir: '.', | ||
jsName: 'QueryPersistClientCore', | ||
outputFile: 'index', | ||
entryFile: ['src/index.ts'], | ||
globals: { | ||
'@tanstack/query-core': 'QueryCore', | ||
}, | ||
}), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// @ts-check | ||
|
||
import { defineConfig } from 'rollup' | ||
import { buildConfigs } from "../../scripts/getRollupConfig.mjs" | ||
|
||
export default defineConfig([ | ||
...buildConfigs({ | ||
name: 'query-sync-storage-persister', | ||
packageDir: '.', | ||
jsName: 'QuerySyncStoragePersister', | ||
outputFile: 'index', | ||
entryFile: 'src/index.ts', | ||
globals: { | ||
'@tanstack/query-persist-client-core': 'QueryPersistClientCore', | ||
}, | ||
}), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// @ts-check | ||
|
||
import { defineConfig } from 'rollup' | ||
import { buildConfigs } from "../../scripts/getRollupConfig.mjs" | ||
|
||
export default defineConfig([ | ||
...buildConfigs({ | ||
name: 'react-query-devtools', | ||
packageDir: '.', | ||
jsName: 'ReactQueryDevtools', | ||
outputFile: 'index', | ||
entryFile: 'src/index.ts', | ||
globals: { | ||
react: 'React', | ||
'react-dom': 'ReactDOM', | ||
'@tanstack/react-query': 'ReactQuery', | ||
'@tanstack/query-devtools': 'TanstackQueryDevtools', | ||
}, | ||
bundleUMDGlobals: ['@tanstack/query-devtools'], | ||
}), | ||
...buildConfigs({ | ||
name: 'react-query-devtools-prod', | ||
packageDir: '.', | ||
jsName: 'ReactQueryDevtools', | ||
outputFile: 'index.prod', | ||
entryFile: 'src/index.ts', | ||
globals: { | ||
react: 'React', | ||
'react-dom': 'ReactDOM', | ||
'@tanstack/react-query': 'ReactQuery', | ||
'@tanstack/match-sorter-utils': 'MatchSorterUtils', | ||
superjson: 'SuperJson', | ||
}, | ||
forceDevEnv: true, | ||
forceBundle: true, | ||
skipUmdBuild: true, | ||
}), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// @ts-check | ||
|
||
import { defineConfig } from 'rollup' | ||
import { buildConfigs } from "../../scripts/getRollupConfig.mjs" | ||
|
||
export default defineConfig([ | ||
...buildConfigs({ | ||
name: 'react-query-persist-client', | ||
packageDir: '.', | ||
jsName: 'ReactQueryPersistClient', | ||
outputFile: 'index', | ||
entryFile: 'src/index.ts', | ||
globals: { | ||
react: 'React', | ||
'@tanstack/query-persist-client-core': 'QueryPersistClientCore', | ||
'@tanstack/react-query': 'ReactQuery', | ||
}, | ||
bundleUMDGlobals: ['@tanstack/query-persist-client-core'], | ||
}), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// @ts-check | ||
|
||
import { defineConfig } from 'rollup' | ||
import { buildConfigs } from "../../scripts/getRollupConfig.mjs" | ||
|
||
export default defineConfig([ | ||
...buildConfigs({ | ||
name: 'react-query', | ||
packageDir: '.', | ||
jsName: 'ReactQuery', | ||
outputFile: 'index', | ||
entryFile: ['src/index.ts'], | ||
globals: { | ||
react: 'React', | ||
'react-dom': 'ReactDOM', | ||
'@tanstack/query-core': 'QueryCore', | ||
'react-native': 'ReactNative', | ||
}, | ||
bundleUMDGlobals: ['@tanstack/query-core'], | ||
}), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// @ts-check | ||
|
||
import { defineConfig } from 'rollup' | ||
import { createSolidQueryConfig } from "../../scripts/getRollupConfig.mjs" | ||
|
||
export default defineConfig([ | ||
createSolidQueryConfig(), | ||
]) |
Oops, something went wrong.