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'`
This commit is contained in:
Matt Bierner 2022-05-25 18:28:46 -07:00 committed by GitHub
parent 12cb993238
commit e262c88fb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,6 +151,7 @@ const browserPlugins = [
]
}),
new DefinePlugin({
'process.platform': JSON.stringify('web'),
'process.env': JSON.stringify({}),
'process.env.BROWSER_ENV': JSON.stringify('true')
})