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); }