Skip to content

Commit a6f34fc

Browse files
committed
fix ESM build
1 parent 4622238 commit a6f34fc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@colyseus/playground",
3-
"version": "0.16.1",
3+
"version": "0.16.2",
44
"main": "./build/index.js",
55
"module": "./build/index.mjs",
66
"typings": "./build/index.d.ts",

src-backend/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import express, { Router } from 'express';
33
import { auth, JWT } from '@colyseus/auth';
44
import { matchMaker, IRoomCache } from '@colyseus/core';
55
import { allRoomNames, applyMonkeyPatch } from './colyseus.ext.js';
6+
import { fileURLToPath } from 'url'; // required for ESM build (see build.mjs)
67

78
export type AuthConfig = {
89
oauth: string[],

0 commit comments

Comments
 (0)