Client.js:22 Uncaught TypeError: _this.connect is not a function

I'm trying to get the client/server model to work, but I'm getting an error.
My code is here: https://gist.github.com/x052/88bb84e64ee9a4e5fe11c501a154cb3d and it gets built with webpack. Does anyone have any suggestions to fix this?

hey @x052, for forgot to construct the client with new (new Colyseus.Client())