Update packages + fix web worker
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 9 Feb 2020 14:11:50 +0000 (15:11 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 9 Feb 2020 14:11:50 +0000 (15:11 +0100)
client/vue.config.js
server/package-lock.json

index bdf54dc..a98dd2d 100644 (file)
@@ -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',
+    },
+  },
 };
index 16d7de6..0daef0a 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "vchess",
-  "version": "0.1.0",
+  "version": "1.0.0",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {