Skip to content

Commit 08cf69e

Browse files
authored
Merge pull request #940 from GetStream/namespace-library
Export library as namespace
2 parents 3b7ebc3 + 5e065a0 commit 08cf69e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

rollup.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,14 @@ const fullBrowserBundle = ({ min } = { min: false }) => ({
135135
...baseConfig,
136136
output: [
137137
{
138-
extend: true, // extend window, not overwrite it
139138
file: min ? pkg.jsdelivr : pkg.jsdelivr.replace('.min', ''),
140139
format: 'iife',
141140
globals: {
142141
react: 'React',
143142
'react-dom': 'ReactDOM',
144143
'stream-chat': 'StreamChat',
145144
},
146-
name: 'window', // write all exported values to window
145+
name: 'StreamChatReact', // write all exported values to window under key StreamChatReact
147146
sourcemap: true,
148147
},
149148
],
@@ -165,7 +164,7 @@ const fullBrowserBundle = ({ min } = { min: false }) => ({
165164
globals: false,
166165
process: true,
167166
}),
168-
// To work with globals rollup expects them to be namespaced, what is not the case with stream-chat.
167+
// To work with globals rollup expects them to be namespaced, which is not the case with stream-chat.
169168
// This injects some code to define stream-chat globals as expected by rollup.
170169
prepend(
171170
'window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};',

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '6.0.1';
1+
export const version = '6.0.2';

0 commit comments

Comments
 (0)