hytopia 0.10.26 → 0.10.27-prerelease-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/scripts.js CHANGED
@@ -78,6 +78,8 @@ async function build() {
78
78
  sourcemap: 'inline',
79
79
  mainFields: ['module', 'main'],
80
80
  conditions: ['import', 'node'],
81
+ treeShaking: true,
82
+ minify: true,
81
83
  banner: {
82
84
  js: 'import { createRequire as __cr } from "module"; import { fileURLToPath } from "url"; import { dirname as __bundlerDirname } from "path"; const require = __cr(import.meta.url); const __filename = fileURLToPath(import.meta.url); const __dirname = __bundlerDirname(__filename);'
83
85
  }
@@ -115,6 +117,8 @@ function start() {
115
117
  external: [ 'mediasoup' ], // prevent pathing issues in dev env, prod sets the bin path so no issue bundling in prod build/package.
116
118
  mainFields: ['module', 'main'],
117
119
  conditions: ['import', 'node'],
120
+ treeShaking: true,
121
+ minify: true,
118
122
  banner: {
119
123
  js: 'import { createRequire as __cr } from "module"; import { fileURLToPath } from "url"; import { dirname } from "path"; const require = __cr(import.meta.url); const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename);'
120
124
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.10.26",
3
+ "version": "0.10.27-prerelease-2",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./server.mjs",
@@ -58,7 +58,7 @@
58
58
  "dependencies": {
59
59
  "@gltf-transform/cli": "^4.2.1",
60
60
  "archiver": "^7.0.1",
61
- "esbuild": "^0.25.9",
61
+ "bun": "^1.3.0",
62
62
  "ws": "^8.18.2"
63
63
  },
64
64
  "optionalDependencies": {