From a9acf06479370215a716c593ce615cfdd6b81502 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Fri, 7 Jan 2022 15:18:18 +0100 Subject: [PATCH] fix webignore patterns for appinsights also, web: look for minified entrypoints as well Closes: #140158 --- build/.webignore | 4 ++++ build/lib/util.js | 11 +++++++++-- build/lib/util.ts | 20 +++++++++++++++++--- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/build/.webignore b/build/.webignore index fc1d2067643a5..f55882ba9d446 100644 --- a/build/.webignore +++ b/build/.webignore @@ -32,3 +32,7 @@ xterm-addon-webgl/out/** # This makes sure the model is included in the package !@vscode/vscode-languagedetection/model/** + +@microsoft/applicationinsights*/** +@microsoft/dynamicproto-js/** +!@microsoft/applicationinsights-web/dist/applicationinsights-web.min.js \ No newline at end of file diff --git a/build/lib/util.js b/build/lib/util.js index 9effd6a0f22ef..e1fbc80f5d8a2 100644 --- a/build/lib/util.js +++ b/build/lib/util.js @@ -323,10 +323,17 @@ function acquireWebNodePaths() { } // Remove any starting path information so it's all relative info if (entryPoint.startsWith('./')) { - entryPoint = entryPoint.substr(2); + entryPoint = entryPoint.substring(2); } else if (entryPoint.startsWith('/')) { - entryPoint = entryPoint.substr(1); + entryPoint = entryPoint.substring(1); + } + // Search for a minified entrypoint as well + if (/(?