simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

How can I get non-minified version of simple-peer?

Open stiv-yakovenko opened this issue 3 years ago • 3 comments

(For my debugging purposes)?

stiv-yakovenko avatar Dec 17 '21 03:12 stiv-yakovenko

https://github.com/feross/simple-peer/blob/master/index.js

jzombie avatar Dec 20 '21 18:12 jzombie

No, this is not what I need. I need unminified version of simplepeer.min.js, so I can replace it. This one is unpreprocessed, it contains require, which browser doesn't understand.

stiv-yakovenko avatar Dec 22 '21 14:12 stiv-yakovenko

Try this one, change the build command in package.json to this:

"build": "browserify -s SimplePeer -r . > simplepeer.js"

The change removes the minify build command as well as renames the output file.

jzombie avatar Dec 22 '21 15:12 jzombie