mafintosh / signalhub

Simple signalling server that can be used to coordinate handshaking with webrtc or other fun stuff.
MIT License
667 stars 97 forks source link

any special option required to browserify ? #41

Open sallespro opened 4 years ago

sallespro commented 4 years ago

i have not been able to make use of this module in the browser.

browserify --ig -e index.js -o signal.js

i can not find the global signalhub.

sallespro commented 4 years ago

i am slso trying to use webpack, but still

node_modules/.bin/webpack index.js --output-library signalhub --outfile signal.js

returns this errors in the browser

./src/utils/signal.js
Module Error (from ./node_modules/eslint-loader/index.js):

./src/utils/signal.js
  1:5      warning  'signalhub' is assigned a value but never used                         no-unused-vars
  1:152    warning  Unexpected use of comma operator                                       no-sequences
  1:182    warning  Unexpected use of comma operator                                       no-sequences
  1:285    error    Expected an assignment or function call and instead saw an expression  no-unused-expressions