From 327437777dcdc6c76fa57c2760f605ef99d59f83 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Tue, 14 Nov 2023 14:32:16 +0100 Subject: [PATCH] Fix worker factory and chunk names --- src/workers/blurhashWorkerFactory.ts | 4 ++-- src/workers/indexeddbWorkerFactory.ts | 4 ++-- src/workers/playbackWorkerFactory.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/workers/blurhashWorkerFactory.ts b/src/workers/blurhashWorkerFactory.ts index a75546be1b..cd5bfe31ff 100644 --- a/src/workers/blurhashWorkerFactory.ts +++ b/src/workers/blurhashWorkerFactory.ts @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker { - return new Worker(new URL("./blurhash.worker.ts", import.meta.url), options); +export default function factory(options?: WorkerOptions | undefined): Worker { + return new Worker(/* webpackChunkName: "blurhash.worker" */ new URL("./blurhash.worker.ts", import.meta.url), options); } diff --git a/src/workers/indexeddbWorkerFactory.ts b/src/workers/indexeddbWorkerFactory.ts index c3b7975569..1ea3df3c79 100644 --- a/src/workers/indexeddbWorkerFactory.ts +++ b/src/workers/indexeddbWorkerFactory.ts @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker { - return new Worker(new URL("./indexeddb.worker.ts", import.meta.url), options); +export default function factory(options?: WorkerOptions | undefined): Worker { + return new Worker(/* webpackChunkName: "indexeddb.worker" */ new URL("./indexeddb.worker.ts", import.meta.url), options); } diff --git a/src/workers/playbackWorkerFactory.ts b/src/workers/playbackWorkerFactory.ts index f6aba5f800..36eaf5e180 100644 --- a/src/workers/playbackWorkerFactory.ts +++ b/src/workers/playbackWorkerFactory.ts @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker { - return new Worker(new URL("./playback.worker.ts", import.meta.url), options); +export default function factory(options?: WorkerOptions | undefined): Worker { + return new Worker(/* webpackChunkName: "playback.worker" */ new URL("./playback.worker.ts", import.meta.url), options); }