Skip to content

Commit

Permalink
packages/core, gossiplog: Revert "fix expo web build error"
Browse files Browse the repository at this point in the history
This reverts commit 817c77c.
  • Loading branch information
raykyri committed Dec 11, 2024
1 parent f119f67 commit fdc7bd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/targets/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import express from "express"
import cors from "cors"

import type pg from "pg"
import ws from "ws"
const { WebSocketServer } = ws // avoid error when building for expo web because WebSocketServer is a CommonJS package
import { WebSocketServer } from "ws"

import { NetworkServer } from "@canvas-js/gossiplog/server"
import { assert } from "@canvas-js/utils"
Expand Down

0 comments on commit fdc7bd6

Please sign in to comment.