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
build(sdk): a shared declaration chunk named after an index module carries its hash
yhh041d6d51552f
diff --git a/sdk/rollup.config.js b/sdk/rollup.config.jsindex 7203938b5..1369ab47d 100644--- a/sdk/rollup.config.js+++ b/sdk/rollup.config.js@@ -31,6 +31,7 @@ export default ['fx-atmosphere/index': 'src/postprocess/fxAtmosphere.ts','fx-lighting/index': 'src/postprocess/fxLighting.ts','foliage/index': 'src/foliage/index.ts',+ 'worldgen/index': 'src/worldgen/index.ts','water/index': 'src/water/index.ts','spline/index': 'src/spline/index.ts','character-shaders/index': 'src/character/index.ts',@@ -45,7 +46,9 @@ export default [output: {dir: 'dist',format: 'esm',- chunkFileNames: 'shared/[name].d.ts',+ // Several shared chunks are named after an `index` module; the second would be deduplicated to `index.d2.ts`, which is+ // not a declaration file to TypeScript. Those carry their hash instead.+ chunkFileNames: (chunk) => (chunk.name === 'index' ? 'shared/[name]-[hash].d.ts' : 'shared/[name].d.ts'),},plugins: [dts()],},