fix(compiler-cli): fix relative source paths on windows for extracted msg (#17915)

Fixes #16639
This commit is contained in:
Olivier Combe 2017-07-08 01:33:40 +02:00 committed by Jason Aden
parent c1474f33be
commit 671a175dfb
1 changed files with 3 additions and 2 deletions

View File

@ -67,8 +67,9 @@ export class Extractor {
serializer = new compiler.Xliff(); serializer = new compiler.Xliff();
} }
return bundle.write( return bundle.write(
serializer, serializer, (sourcePath: string) => this.options.basePath ?
(sourcePath: string) => sourcePath.replace(path.join(this.options.basePath, '/'), '')); path.relative(this.options.basePath, sourcePath) :
sourcePath);
} }
getExtension(formatName: string): string { getExtension(formatName: string): string {