From aa2ccf7d468a268ac58047f8fef62ac64a88d76b Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Sun, 9 Feb 2020 15:11:50 +0100
Subject: [PATCH] Update packages + fix web worker

---
 client/vue.config.js     | 9 ++++++++-
 server/package-lock.json | 2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/client/vue.config.js b/client/vue.config.js
index bdf54dc1..a98dd2dc 100644
--- a/client/vue.config.js
+++ b/client/vue.config.js
@@ -1,3 +1,10 @@
 module.exports = {
-  lintOnSave: false
+  lintOnSave: false,
+  configureWebpack: {
+    output: {
+      // Fix "window is not defined" issues with web worker.
+      // https://github.com/webpack/webpack/issues/6642
+      globalObject: 'this',
+    },
+  },
 };
diff --git a/server/package-lock.json b/server/package-lock.json
index 16d7de67..0daef0ab 100644
--- a/server/package-lock.json
+++ b/server/package-lock.json
@@ -1,6 +1,6 @@
 {
   "name": "vchess",
-  "version": "0.1.0",
+  "version": "1.0.0",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {
-- 
2.44.0