Skip to content

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.

refactor(sdk): four modules named support.ts, one flat chunk namespace

esenginef20d15f99c07
diff --git a/sdk/src/dragonbones/support.ts b/sdk/src/dragonbones/dragonBonesSupport.ts
similarity index 100%
rename from sdk/src/dragonbones/support.ts
rename to sdk/src/dragonbones/dragonBonesSupport.ts
diff --git a/sdk/src/dragonbones/index.ts b/sdk/src/dragonbones/index.ts
index e9b07919a..f2d02e9d7 100644
--- a/sdk/src/dragonbones/index.ts
+++ b/sdk/src/dragonbones/index.ts
@@ -24,6 +24,6 @@ export type { DragonBonesAssetInfo } from './loadDragonBonesScene';
export type { RuntimeAssetSource } from '../runtime/runtimeAssets';
// Importing this subpath INSTALLS DragonBones — see spine/index.ts.
-import { registerDragonBonesSupport } from './support';
+import { registerDragonBonesSupport } from './dragonBonesSupport';
registerDragonBonesSupport();
diff --git a/sdk/src/physics/index.ts b/sdk/src/physics/index.ts
index eb4df3b68..f96158fb6 100644
--- a/sdk/src/physics/index.ts
+++ b/sdk/src/physics/index.ts
@@ -115,6 +115,6 @@ export {
export { registerCharacterController2DSystem } from './CharacterController2DSystem';
// Importing this subpath INSTALLS 2D physics — see spine/index.ts.
-import { registerPhysics2DSupport } from './support';
+import { registerPhysics2DSupport } from './physicsSupport';
registerPhysics2DSupport();
diff --git a/sdk/src/physics/support.ts b/sdk/src/physics/physicsSupport.ts
similarity index 100%
rename from sdk/src/physics/support.ts
rename to sdk/src/physics/physicsSupport.ts
diff --git a/sdk/src/physics3d/index.ts b/sdk/src/physics3d/index.ts
index 80822c9b9..9a97d52c1 100644
--- a/sdk/src/physics3d/index.ts
+++ b/sdk/src/physics3d/index.ts
@@ -104,6 +104,6 @@ export {
} from './ColliderShape3D';
// Importing this subpath INSTALLS 3D physics — see spine/index.ts.
-import { registerPhysics3DSupport } from './support';
+import { registerPhysics3DSupport } from './physics3dSupport';
registerPhysics3DSupport();
diff --git a/sdk/src/physics3d/support.ts b/sdk/src/physics3d/physics3dSupport.ts
similarity index 100%
rename from sdk/src/physics3d/support.ts
rename to sdk/src/physics3d/physics3dSupport.ts
diff --git a/sdk/src/runtime/optionalPlugins.ts b/sdk/src/runtime/optionalPlugins.ts
index 2d5324cd9..cdc383b67 100644
--- a/sdk/src/runtime/optionalPlugins.ts
+++ b/sdk/src/runtime/optionalPlugins.ts
@@ -15,10 +15,10 @@
*/
import { VideoPlayer } from '../video/VideoAPI';
import { setSceneOptionals } from './sceneOptionals';
-import { registerSpineSupport } from '../spine/support';
-import { registerDragonBonesSupport } from '../dragonbones/support';
-import { registerPhysics2DSupport } from '../physics/support';
-import { registerPhysics3DSupport } from '../physics3d/support';
+import { registerSpineSupport } from '../spine/spineSupport';
+import { registerDragonBonesSupport } from '../dragonbones/dragonBonesSupport';
+import { registerPhysics2DSupport } from '../physics/physicsSupport';
+import { registerPhysics3DSupport } from '../physics3d/physics3dSupport';
export function installOptionalPlugins(): void {
registerSpineSupport();
diff --git a/sdk/src/spine/index.ts b/sdk/src/spine/index.ts
index 0aa549c54..3642752f5 100644
--- a/sdk/src/spine/index.ts
+++ b/sdk/src/spine/index.ts
@@ -34,6 +34,6 @@ export type { RuntimeAssetSource } from '../runtime/runtimeAssets';
// Importing this subpath INSTALLS Spine: the core runtime names no optional
// subsystem, so this is what puts it back, and a build that never imports it
// ships none of the code below.
-import { registerSpineSupport } from './support';
+import { registerSpineSupport } from './spineSupport';
registerSpineSupport();
diff --git a/sdk/src/spine/support.ts b/sdk/src/spine/spineSupport.ts
similarity index 100%
rename from sdk/src/spine/support.ts
rename to sdk/src/spine/spineSupport.ts