From: Benjamin Auder Date: Sun, 9 Feb 2020 14:11:50 +0000 (+0100) Subject: Update packages + fix web worker X-Git-Url: https://git.auder.net/variants/Bario/js/current/vendor/vue.min.js?a=commitdiff_plain;h=aa2ccf7d468a268ac58047f8fef62ac64a88d76b;p=vchess.git Update packages + fix web worker --- 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": {