Skip to content

Commit

Permalink
feat!: expose browser by default
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
steabert committed Jan 15, 2021
1 parent 76e49bb commit 3a0909a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"version": "8.0.4",
"description": "Media stream library for Node & the Web.",
"license": "MIT",
"main": "dist/cjs/index.node.js",
"browser": "dist/esm/index.browser.js",
"main": "dist/media-stream-library.min.js",
"types": "dist/esm/index.browser.d.ts",
"browserslist": "last 2 versions, not dead",
"module": "dist/esm/index.node.js",
"bin": {
"live": "examples/node/player.js"
},
Expand Down

0 comments on commit 3a0909a

Please sign in to comment.