mirror of
https://github.com/Microsoft/vscode
synced 2024-09-12 21:24:38 +00:00
parent
339fd630e6
commit
22cfea1eb7
File diff suppressed because one or more lines are too long
|
@ -494,7 +494,7 @@ export class Mangler {
|
|||
|
||||
} else {
|
||||
// source map generator
|
||||
const relativeFileName = path.relative(projectDir, item.fileName);
|
||||
const relativeFileName = normalize(path.relative(projectDir, item.fileName));
|
||||
const mappingsByLine = new Map<number, Mapping[]>();
|
||||
|
||||
// apply renames
|
||||
|
@ -569,6 +569,9 @@ function hasModifier(node: ts.Node, kind: ts.SyntaxKind) {
|
|||
return Boolean(modifiers?.find(mode => mode.kind === kind));
|
||||
}
|
||||
|
||||
function normalize(path: string): string {
|
||||
return path.replace(/\\/g, '/');
|
||||
}
|
||||
|
||||
async function _run() {
|
||||
|
||||
|
|
Loading…
Reference in a new issue