Skip to content

Commit 2bdcd52

Browse files
committed
change the global namespace of rtk-query
use the same namespace for both rtk-query and rtk-query-react since users should only be loading one or the other fix #1761
1 parent fde0f20 commit 2bdcd52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/toolkit/scripts/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ const entryPoints: EntryPointOptions[] = [
104104
folder: 'query',
105105
entryPoint: 'src/query/index.ts',
106106
extractionConfig: 'api-extractor.query.json',
107-
globalName: 'RTK.QUERY',
107+
globalName: 'RTKQ',
108108
},
109109
{
110110
prefix: 'rtk-query-react',
111111
folder: 'query/react',
112112
entryPoint: 'src/query/react/index.ts',
113113
extractionConfig: 'api-extractor.query-react.json',
114-
globalName: 'RTK.QUERY.REACT',
114+
globalName: 'RTKQ',
115115
},
116116
]
117117

packages/toolkit/scripts/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ export interface EntryPointOptions {
1919
folder: string
2020
entryPoint: string
2121
extractionConfig: string
22-
// globalName is used in the conversion to umd files to separate rtk from rtk-query on a global name space
22+
// globalName is used in the conversion to umd files to separate rtk from rtk-query on a global namespace
2323
globalName: string
2424
}

0 commit comments

Comments
 (0)