Quellcode durchsuchen

[ts] Add missing .js extensions.

Mario Zechner vor 1 Jahr
Ursprung
Commit
8d832b3834

+ 1 - 1
spine-ts/spine-core/src/AtlasAttachmentLoader.ts

@@ -36,7 +36,7 @@ import { PointAttachment } from "./attachments/PointAttachment.js";
 import { RegionAttachment } from "./attachments/RegionAttachment.js";
 import { Skin } from "./Skin.js";
 import { TextureAtlas } from "./TextureAtlas.js";
-import { Sequence } from "./attachments/Sequence"
+import { Sequence } from "./attachments/Sequence.js"
 
 /** An {@link AttachmentLoader} that configures attachments using texture regions from an {@link TextureAtlas}.
  *

+ 1 - 1
spine-ts/spine-phaser/src/SpineGameObject.ts

@@ -38,7 +38,7 @@ import {
 	VisibleMixin,
 	AlphaMixin,
 	OriginMixin,
-} from "./mixins";
+} from "./mixins.js";
 import {
 	AnimationState,
 	AnimationStateData,

+ 3 - 3
spine-ts/spine-pixi/src/Spine.ts

@@ -43,9 +43,9 @@ import {
 	Utils,
 	Vector2,
 } from "@esotericsoftware/spine-core";
-import type { SpineTexture } from "./SpineTexture";
-import { SlotMesh } from "./SlotMesh";
-import type { ISpineDebugRenderer } from "./SpineDebugRenderer";
+import type { SpineTexture } from "./SpineTexture.js";
+import { SlotMesh } from "./SlotMesh.js";
+import type { ISpineDebugRenderer } from "./SpineDebugRenderer.js";
 import { Assets } from "@pixi/assets";
 import type { IPointData } from "@pixi/core";
 import { Ticker, utils } from "@pixi/core";

+ 1 - 1
spine-ts/spine-pixi/src/SpineDebugRenderer.ts

@@ -30,7 +30,7 @@
 import { Container } from "@pixi/display";
 import { Graphics } from "@pixi/graphics";
 import { Text } from "@pixi/text";
-import type { Spine } from "./Spine";
+import type { Spine } from "./Spine.js";
 import type { AnimationStateListener } from "@esotericsoftware/spine-core";
 import { ClippingAttachment, MeshAttachment, PathAttachment, RegionAttachment, SkeletonBounds } from "@esotericsoftware/spine-core";
 

+ 2 - 2
spine-ts/spine-pixi/src/index.ts

@@ -43,5 +43,5 @@ export * from './darkTintMesh/DarkTintRenderer.js';
 export * from "@esotericsoftware/spine-core";
 
 
-import './assets/atlasLoader'; // Side effects install the loaders into pixi
-import './assets/skeletonLoader'; // Side effects install the loaders into pixi
+import './assets/atlasLoader.js'; // Side effects install the loaders into pixi
+import './assets/skeletonLoader.js'; // Side effects install the loaders into pixi