mirror of
https://github.com/Microsoft/vscode
synced 2024-07-17 02:57:19 +00:00
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:
parent
12cb993238
commit
e262c88fb1
|
@ -151,6 +151,7 @@ const browserPlugins = [
|
|||
]
|
||||
}),
|
||||
new DefinePlugin({
|
||||
'process.platform': JSON.stringify('web'),
|
||||
'process.env': JSON.stringify({}),
|
||||
'process.env.BROWSER_ENV': JSON.stringify('true')
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue