mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Extract usage of require to separate function which can be tree-shaken by the monaco editor build and thus ignored by webpack
This commit is contained in:
@@ -1199,7 +1199,7 @@ export function asCSSUrl(uri: URI | null | undefined): string {
|
||||
if (!uri) {
|
||||
return `url('')`;
|
||||
}
|
||||
return `url('${FileAccess.asBrowserUri(uri).toString(true).replace(/'/g, '%27')}')`;
|
||||
return `url('${FileAccess.uriToBrowserUri(uri).toString(true).replace(/'/g, '%27')}')`;
|
||||
}
|
||||
|
||||
export function asCSSPropertyValue(value: string) {
|
||||
|
||||
Reference in New Issue
Block a user