Fix worker factory and chunk names

t3chguy/dedup-icons-17oct
Johannes Marbach 2023-11-14 14:32:16 +01:00
parent 624be1a7fa
commit 327437777d
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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