Skip to content

Commit 71d3605

Browse files
authored
revert: bundle @sendbird/chat as peer dependency (#320)
Even though it is more desirable, Adding `@sendbird/chat` as peer dependency fails the bundled library Need to investigate more
1 parent f987980 commit 71d3605

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"author": "SendBird <[email protected]>",
4646
"license": "SEE LICENSE IN LICENSE.md",
4747
"peerDependencies": {
48-
"@sendbird/chat": "^4.0.11",
4948
"css-vars-ponyfill": "^2.3.2",
5049
"date-fns": "^2.16.1",
5150
"prop-types": "^15.7.2",

rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ module.exports = ({
3838
},
3939
],
4040
external: [
41-
'@sendbird/chat',
41+
// unbundled version of @sendbird/chat fails in production
42+
// '@sendbird/chat',
4243
'react-dom/server',
4344
'prop-types',
4445
'react',

scripts/package.template.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"date-fns": "^2.16.1",
2727
"prop-types": "^15.7.2",
2828
"react": "^16.8.6 || ^17.0.0 || ^18.0.0",
29-
"react-dom": "^16.8.6 || ^17.0.0 || ^18.0.0",
30-
"@sendbird/chat": "^4.0.11"
29+
"react-dom": "^16.8.6 || ^17.0.0 || ^18.0.0"
3130
},
3231
"dependencies": {
3332
"@sendbird/chat": "^4.0.11",

0 commit comments

Comments
 (0)