Fix worker factory and chunk names
parent
624be1a7fa
commit
327437777d
|
@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker {
|
export default function factory(options?: WorkerOptions | undefined): Worker {
|
||||||
return new Worker(new URL("./blurhash.worker.ts", import.meta.url), options);
|
return new Worker(/* webpackChunkName: "blurhash.worker" */ new URL("./blurhash.worker.ts", import.meta.url), options);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker {
|
export default function factory(options?: WorkerOptions | undefined): Worker {
|
||||||
return new Worker(new URL("./indexeddb.worker.ts", import.meta.url), options);
|
return new Worker(/* webpackChunkName: "indexeddb.worker" */ new URL("./indexeddb.worker.ts", import.meta.url), options);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker {
|
export default function factory(options?: WorkerOptions | undefined): Worker {
|
||||||
return new Worker(new URL("./playback.worker.ts", import.meta.url), options);
|
return new Worker(/* webpackChunkName: "playback.worker" */ new URL("./playback.worker.ts", import.meta.url), options);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue