Need help to modernize mediasou-demo build system

Hi, I’m trying to modernize mediasoup-demo/app (the browser side app). However too many problems show up and this is not my area of expertise at all.

This is the draft PR I’m working on (now completely stuck due to an amazing error I’ve no idea about):

May we please get some help? Any other separate effort (in case you want to ignore my draft PR) would also work.

Thanks a lot.

@ibc Is the desired outcome to update dependency versions as modern as possible while exact same features and functionality?

I’m looking at it.

That would be good, although I’m open to any kind of refactor to use more modern web building approaches. Thanks a lot.

I’m going to try right now to set it up and see if I can get your error.

I made a PR here:

  • Use Vite in replacement for gulp
    • npm start will start development server on port 3000
    • npm run build will build the code into app/dist. We might need to move to server/public to serve this UI
  • Move lib → src, resources → public, stylus → src/scss
  • Remove jsx control statement If, When, Match, Otherwise and replace with standard operators
  • Remove antiglobal
  • Add prettier and adjust eslint for standard code format