debian-mirror-gitlab/debian/patches/0790-worker-loader-3.patch

24 lines
808 B
Diff

From d074f685027a6a8b03bcaaf1f0cb2ff08c167dc9 Mon Sep 17 00:00:00 2001
From: Pirate Praveen <praveen@debian.org>
Date: Sun, 6 Dec 2020 18:24:33 +0000
Subject: [PATCH] Update worker-loader from 2.x to 3.x
---
config/webpack.config.js | 4 ++--
package.json | 2 +-
yarn.lock | 46 ++++++++++++++++++++++++++++++++++++++++
3 files changed, 49 insertions(+), 3 deletions(-)
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -230,8 +230,8 @@
{
loader: 'worker-loader',
options: {
- name: '[name].[contenthash:8].worker.js',
- inline: IS_DEV_SERVER,
+ filename: '[name].[contenthash:8].worker.js',
+ inline: "fallback",
},
},
'babel-loader',