change build system to rollup

This commit is contained in:
Avad3 2024-07-13 16:30:33 -04:00
parent 5122438c96
commit c3db610837
39 changed files with 2225 additions and 2451 deletions

View file

@ -1,17 +1,16 @@
import { BareClient } from "@mercuryworkshop/bare-mux"
const client = new BareClient()
const RealWebSocket = WebSocket
WebSocket = new Proxy(WebSocket, {
construct(_target, args) {
return client.createWebSocket(
args[0],
args[1],
RealWebSocket,
{
"User-Agent": navigator.userAgent
},
// @ts-expect-error
ArrayBuffer.prototype
)
}
import { BareClient } from "@mercuryworkshop/bare-mux"
const client = new BareClient()
const RealWebSocket = WebSocket
WebSocket = new Proxy(WebSocket, {
construct(_target, args) {
return client.createWebSocket(
args[0],
args[1],
RealWebSocket,
{
"User-Agent": navigator.userAgent
},
ArrayBuffer.prototype
)
}
})