fixup: remove mangling in extensions/ (introduced in 1.80)

This also fixes the reproducibility issue mentioned in https://github.com/microsoft/vscode/issues/189124
This commit is contained in:
Bruno Pitrus 2023-07-28 21:20:35 +02:00
parent 0b2fc64a3b
commit 28b5c7be4a
No known key found for this signature in database
GPG key ID: 32B7566977935F75

View file

@ -0,0 +1,11 @@
--- vscode-1.80.1/extensions/mangle-loader.js.old 2023-07-12 18:45:52.000000000 +0200
+++ vscode-1.80.1/extensions/mangle-loader.js 2023-07-28 11:55:01.177444702 +0200
@@ -37,7 +37,7 @@ function getMangledFileContents(projectP
* @type {webpack.LoaderDefinitionFunction}
*/
module.exports = async function (source, sourceMap, meta) {
- if (this.mode !== 'production') {
+ if (true) {
// Only enable mangling in production builds
return source;
}