From e262c88fb16e1d4ec5c7d5cf82ac78dad7961091 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Wed, 25 May 2022 18:28:46 -0700 Subject: [PATCH] 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'` --- extensions/shared.webpack.config.js | 1 + 1 file changed, 1 insertion(+) 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') })