Commit a69c501
authored
chore: improve ESM <-> CJS compatibility with rollup interop: "compat" (#1176)
https://sendbird.atlassian.net/browse/CLNP-4373
Aims to enhance the compatibility between ESM and CJS by updating the
Rollup configuration to include `interop: "compat"` setting for the
CommonJS output.
This change ensures better interoperability and resolves potential
issues when using the @sendbird/chat SDK in mixed module environments
(ESM <-> CJS).
### Checklist
- [x] verified that no lines throw errors:
```
const chatSDK = require('path-to-chat-sdk');
console.log(chatSDK);
console.log(chatSDK.default);
if (chatSDK.default) {
chatSDK.default.init();
} else {
chatSDK.init();
}
```
- [x] no errors during the build step1 parent 7cad521 commit a69c501
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments