Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Bierner <matb@microsoft.com>2022-05-26 04:28:46 +0300
committerGitHub <noreply@github.com>2022-05-26 04:28:46 +0300
commite262c88fb16e1d4ec5c7d5cf82ac78dad7961091 (patch)
tree10b84b05eff5978755f37ee9e5201770db27b9b9 /extensions
parent12cb9932382bcde504d05477c5049f22e5f07d26 (diff)
Fix process.platform for picomatch (#150430)
The `picomatch` library currently checks `process.platform`. This check fails on web, which causes the markdown extension to not load To fix this, I'm replacing `process.platform` with the string`'web'`
Diffstat (limited to 'extensions')
-rw-r--r--extensions/shared.webpack.config.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/shared.webpack.config.js b/extensions/shared.webpack.config.js
index 84aa4259a3b..3ebb9c62b52 100644
--- a/extensions/shared.webpack.config.js
+++ b/extensions/shared.webpack.config.js
@@ -151,6 +151,7 @@ const browserPlugins = [
]
}),
new DefinePlugin({
+ 'process.platform': JSON.stringify('web'),
'process.env': JSON.stringify({}),
'process.env.BROWSER_ENV': JSON.stringify('true')
})