X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fvue.config.js;h=a98dd2dc5b9e993edab449723edde2d6f2caa4c6;hp=bdf54dc1cce0592a8aef940eb6df8fec3b0ea733;hb=aa2ccf7d468a268ac58047f8fef62ac64a88d76b;hpb=6f093ada2dafe47198b85d29ce5d26b50a343f8e 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', + }, + }, };