A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
docs(export): the WeChat limit says which bytes it counts
esengine1ec1ba7fcc55
diff --git a/pipeline/src/project/sizeBudget.ts b/pipeline/src/project/sizeBudget.tsindex df679ae4f..9b2394fb7 100644--- a/pipeline/src/project/sizeBudget.ts+++ b/pipeline/src/project/sizeBudget.ts@@ -79,8 +79,14 @@ export function builtinSizeBudgets(platform: ExportPlatform): readonly SizeBudgeconst NO_BUDGETS: readonly SizeBudget[] = [];+/**+ * WeChat counts PACKED BYTES, not the download: `miniprogram-ci`'s packer sums each+ * file's raw length (plus its path, which this measurement omits) and gzips only the+ * finished upload, while the platform ZSTDs the package on the way down. So brotli on+ * a .wasm buys main-package room and shipping compressible assets does not.+ */const WECHAT_BUDGETS: readonly SizeBudget[] = [- { scope: 'initial', maxBytes: 4 * MB, note: "WeChat caps a mini-game's main package at 4MB" },+ { scope: 'initial', maxBytes: 4 * MB, note: "WeChat caps a mini-game's main package at 4MB of packed bytes" },{ scope: 'total', maxBytes: 30 * MB, note: 'WeChat caps a mini-game at 30MB across the main package and all subpackages' },];