From 155aeffb91a9716cd85cd252ac36c3de15a3bda2 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Mon, 15 Mar 2021 14:40:20 -0700 Subject: [PATCH] fix: do not minify the client code When switching from rollup to esbuild, we enabled minification of the client code for the first time. This ended up breaking the extension on Windows machines. This commit removes the minification and should resolve the broken activation on Windows. Fixes #1198 --- esbuild.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esbuild.js b/esbuild.js index 53094115d1..1ce4377047 100644 --- a/esbuild.js +++ b/esbuild.js @@ -21,7 +21,8 @@ const clientConfig = { 'vscode-jsonrpc', ], format: 'cjs', - minify: true, + // Do not enable minification. It seems to break the extension on Windows (with WSL). See #1198. + minify: false, }; /** @type esbuild.BuildOptions */