fix(compiler-cli): fix relative source paths on windows for extracted msg (#17915)
Fixes #16639
This commit is contained in:
parent
c1474f33be
commit
671a175dfb
|
@ -67,8 +67,9 @@ export class Extractor {
|
|||
serializer = new compiler.Xliff();
|
||||
}
|
||||
return bundle.write(
|
||||
serializer,
|
||||
(sourcePath: string) => sourcePath.replace(path.join(this.options.basePath, '/'), ''));
|
||||
serializer, (sourcePath: string) => this.options.basePath ?
|
||||
path.relative(this.options.basePath, sourcePath) :
|
||||
sourcePath);
|
||||
}
|
||||
|
||||
getExtension(formatName: string): string {
|
||||
|
|
Loading…
Reference in New Issue