Open
Description
Description:
I'm trying to use this library in the browser and I'd like to include the dist files with an ES6 import, i.e.:
import OBSWebSocket from '../../../node_modules/obs-websocket-js/dist/obs-websocket.js'
But I'm experiencing a problem with how OBSWebSocket
is exported. Currently the dist/obs-websocket.js has the following:
var OBSWebSocket =
This results in an empty object ({}
).
If I change the line to read:
export default OBSWebSocket =
I get the result I desire, which is access to the OBSWebSocket constructor.
Is there any reason the dist file can't be updated?
Versions Used (if applicable):
- obs-websocket-js version: 3.1.0
- obs-websocket plugin version: 4.6.1
- obs-studio version: 23.2.1
- node version: 10.16.1
Metadata
Metadata
Assignees
Labels
No labels