Add .js extension to imports

This commit is contained in:
yushijinhun 2020-01-24 19:34:50 +08:00
parent 58364c82d2
commit 5363e92822
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
4 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
import { Clock } from "three";
import { PlayerObject } from "./model";
import { PlayerObject } from "./model.js";
export interface IAnimation {
play(player: PlayerObject, time: number): void;

View File

@ -1,5 +1,5 @@
import { EventDispatcher, MOUSE, OrthographicCamera, PerspectiveCamera, Quaternion, Spherical, Vector2, Vector3 } from "three";
import { SkinViewer } from "./viewer";
import { SkinViewer } from "./viewer.js";
const STATE = {
NONE: - 1,

View File

@ -1,4 +1,4 @@
export * from "./model";
export * from "./viewer";
export * from "./orbit_controls";
export * from "./animation";
export * from "./model.js";
export * from "./viewer.js";
export * from "./orbit_controls.js";
export * from "./animation.js";

View File

@ -1,6 +1,6 @@
import { NearestFilter, PerspectiveCamera, Scene, Texture, Vector2, WebGLRenderer } from "three";
import { RootAnimation } from "./animation";
import { PlayerObject } from "./model";
import { RootAnimation } from "./animation.js";
import { PlayerObject } from "./model.js";
import { isSlimSkin, loadCapeToCanvas, loadSkinToCanvas } from "skinview-utils";
export interface SkinViewerOptions {