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(changelog): a web package ships the subsystems it uses
esenginedba22830fdc6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8c7e57428..c27fbb315 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -23,6 +23,16 @@ published separately; it ships inside the editor.### Changed+- **A web package ships only the subsystems its project uses.** Every web package staged all eleven engine+ subpaths and loaded the entry that installs every optional subsystem, so a UI-only game+ carried Spine, both physics runtimes, tilemaps, script graphs, gameplay AI and+ replication — 215KB of JavaScript nothing in it could reach. The page's import map is now+ built for the project: it names the subpaths the content, the cooked assets, the wasm+ scan and the game's own scripts reach, the package carries those and no others, and the+ game host imports them — staging a subpath only makes it resolvable, and something has to+ install it. A project using a subsystem no subpath installs (video today) takes the whole+ entry as before. Measured on the UI-game template: 1,305KB → 1,090KB, 57 files → 32.+- **Replication is a subpath: `import { Net, Replicated } from 'esengine/replication'`.** The base plugin set named the replicationplugin, so every package carried the wire protocol, the codec, the interest query and theprediction replay — 64KB of a single-player game that nothing in it can reach. A game thatdiff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex ebbad2683..d94610094 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -696,6 +696,10 @@ export const NOTED = {{ internal: 'the order a stack of plugins is assembled in' },'docs(manual): the AI, tilemap and script-graph pages import from their subpaths':{ internal: "a manual page's import line, following the move it documents" },+ 'refactor(play): the play realm asks for the whole import map by name':+ { internal: "the editor's preview page names the same subpaths it always did" },+ 'feat(export): a web package ships the subsystems it uses':+ { note: "A web package ships only the subsystems its project uses." },'fix(sdk): the headless entry joins the shared chunk graph':{ note: "A dedicated server built on `esengine/node` replicates again." },'refactor(play): the play host installs replication from its subpath':