diff options
author | Matt Bierner <matb@microsoft.com> | 2022-05-26 04:28:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 04:28:46 +0300 |
commit | e262c88fb16e1d4ec5c7d5cf82ac78dad7961091 (patch) | |
tree | 10b84b05eff5978755f37ee9e5201770db27b9b9 | |
parent | 12cb9932382bcde504d05477c5049f22e5f07d26 (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'`
-rw-r--r-- | extensions/shared.webpack.config.js | 1 |
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') }) |