Skip to content

Commit

Permalink
fix(compiler-cli): fix relative source paths on windows for extracted…
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe authored and juleskremer committed Aug 24, 2017
1 parent 7b33d3a commit 9fcbc6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/compiler-cli/src/extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9fcbc6c

Please sign in to comment.