We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eacee11 commit ecc17c2Copy full SHA for ecc17c2
src/base.ts
@@ -371,5 +371,7 @@ export abstract class BaseOBSWebSocket extends EventEmitter<MapValueToArgsArray<
371
}
372
373
// https://github.com/developit/microbundle/issues/531#issuecomment-575473024
374
-// eslint-disable-next-line @typescript-eslint/naming-convention
375
-Object.defineProperty(exports, '__esModule', {value: true});
+// Not using ESM export due to it also being detected and breaking rollup based bundlers (vite)
+if (typeof exports !== 'undefined') {
376
+ Object.defineProperty(exports, '__esModule', {value: true});
377
+}
0 commit comments