Fix paths and extensions
This commit is contained in:
parent
253ff78c00
commit
624be1a7fa
5 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue