mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +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({
|
new DefinePlugin({
|
||||||
|
'process.platform': JSON.stringify('web'),
|
||||||
'process.env': JSON.stringify({}),
|
'process.env': JSON.stringify({}),
|
||||||
'process.env.BROWSER_ENV': JSON.stringify('true')
|
'process.env.BROWSER_ENV': JSON.stringify('true')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue