Skip to content

Commit 3a0909a

Browse files
committed
feat!: expose browser by default
Trying to have default entry points for both node and browser seems to be a bit of a mess to have it work properly for all kinds of environments. Instead, only browser entry points are exposed, with the `browser` field pointing to the bundle (so you don't need to be able to bundle the browserify parts yourself when using this). If using with Node.js, you'll have to import from `dist/cjs/index.node.js` directly.
1 parent 76e49bb commit 3a0909a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
"version": "8.0.4",
44
"description": "Media stream library for Node & the Web.",
55
"license": "MIT",
6-
"main": "dist/cjs/index.node.js",
7-
"browser": "dist/esm/index.browser.js",
6+
"main": "dist/media-stream-library.min.js",
7+
"types": "dist/esm/index.browser.d.ts",
88
"browserslist": "last 2 versions, not dead",
9-
"module": "dist/esm/index.node.js",
109
"bin": {
1110
"live": "examples/node/player.js"
1211
},

0 commit comments

Comments
 (0)