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
perf(sdk): a declaration list is an authority, not a build entry
esenginef149ef7e6369
diff --git a/sdk/rolldown.config.js b/sdk/rolldown.config.jsindex 3958ea80d..ff8fb91e9 100644--- a/sdk/rolldown.config.js+++ b/sdk/rolldown.config.js@@ -55,7 +55,6 @@ export default defineConfig(['index.wechat.lean': 'src/index.wechat.lean.ts','index.minigame': 'src/index.minigame.ts','index.native': 'src/index.native.ts',- 'physics/components': 'src/physics/components.ts','physics/index': 'src/physics/index.ts','physics3d/index': 'src/physics3d/index.ts','spine/index': 'src/spine/index.ts',diff --git a/sdk/src/physics/components.ts b/sdk/src/physics/components.tsindex a301704e2..c2a31d696 100644--- a/sdk/src/physics/components.ts+++ b/sdk/src/physics/components.ts@@ -4,10 +4,10 @@* @file components.ts — 2D physics as a scene DECLARES it: components, shapes* and the arithmetic over them. No solver.*- * Its own entry point because a chunk is what a bundler can act on: with the- * declarations and the solver in one chunk, a core that needs `RigidBody2D`- * takes Box2D with it into every package. Reading a scene needs this half;- * simulating it needs `esengine/physics`.+ * Not a build entry: making it one cost 1,794 bytes, because rolldown copies the+ * shared declarations into a second chunk rather than splitting the first. It is+ * the AUTHORITY on where the line falls — check-core-carries-options reads this+ * list to tell a declaration from a solver — and that is worth a file on its own.*/export * from './PhysicsComponents';export * from './ColliderShape2D';diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 6b2c09685..6d7a8ff6c 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -28,6 +28,9 @@ export const NOTES_FLOOR = 'v0.65.0';* the reader recognises anyway.*/export const NOTED = {+ 'perf(sdk): a declaration list is an authority, not a build entry':+ { internal: 'Withdraws an unmeasured build entry from the commit before it; a package is 1,794 bytes lighter than that mistake, and unchanged otherwise.' },+'fix(gates): the optional-subsystem ratchet counts what a package actually holds':{ internal: "A repository gate over the SDK's own imports; no creator runs it." },