diff --git a/src/BlurhashEncoder.ts b/src/BlurhashEncoder.ts index 90cd9fa8e1..457fe01e7d 100644 --- a/src/BlurhashEncoder.ts +++ b/src/BlurhashEncoder.ts @@ -17,7 +17,7 @@ limitations under the License. // @ts-ignore - `.ts` is needed here to make TS happy import { Request, Response } from "./workers/blurhash.worker.ts"; import { WorkerManager } from "./WorkerManager"; -import blurhashWorkerFactory from "./workers/blurhashWorkerFactory.js"; +import blurhashWorkerFactory from "./workers/blurhashWorkerFactory"; export class BlurhashEncoder { private static internalInstance = new BlurhashEncoder(); diff --git a/src/audio/Playback.ts b/src/audio/Playback.ts index d9482f51af..a40e0a463c 100644 --- a/src/audio/Playback.ts +++ b/src/audio/Playback.ts @@ -29,7 +29,7 @@ import { createAudioContext, decodeOgg } from "./compat"; import { clamp } from "../utils/numbers"; import { WorkerManager } from "../WorkerManager"; import { DEFAULT_WAVEFORM, PLAYBACK_WAVEFORM_SAMPLES } from "./consts"; -import playbackWorkerFactory from "../workers/playbackWorkerFactory.js"; +import playbackWorkerFactory from "../workers/playbackWorkerFactory"; export enum PlaybackState { Decoding = "decoding", diff --git a/src/workers/blurhashWorkerFactory.ts b/src/workers/blurhashWorkerFactory.ts index 422b8ab6af..a75546be1b 100644 --- a/src/workers/blurhashWorkerFactory.ts +++ b/src/workers/blurhashWorkerFactory.ts @@ -15,5 +15,5 @@ limitations under the License. */ export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker { - return new Worker(new URL("./workers/blurhash.worker.ts", import.meta.url), options); + return new Worker(new URL("./blurhash.worker.ts", import.meta.url), options); } diff --git a/src/workers/indexeddbWorkerFactory.ts b/src/workers/indexeddbWorkerFactory.ts index a2f6287cbe..c3b7975569 100644 --- a/src/workers/indexeddbWorkerFactory.ts +++ b/src/workers/indexeddbWorkerFactory.ts @@ -15,5 +15,5 @@ limitations under the License. */ export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker { - return new Worker(new URL("../workers/indexeddb.worker.ts", import.meta.url), options); + return new Worker(new URL("./indexeddb.worker.ts", import.meta.url), options); } diff --git a/src/workers/playbackWorkerFactory.ts b/src/workers/playbackWorkerFactory.ts index 1d9ebc33d9..f6aba5f800 100644 --- a/src/workers/playbackWorkerFactory.ts +++ b/src/workers/playbackWorkerFactory.ts @@ -15,5 +15,5 @@ limitations under the License. */ export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker { - return new Worker(new URL("../workers/playback.worker.ts", import.meta.url), options); + return new Worker(new URL("./playback.worker.ts", import.meta.url), options); }