Fix worker factory and chunk names

This commit is contained in:
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("./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);
}