We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
relative
1 parent 92f3889 commit 1c4d358Copy full SHA for 1c4d358
packages/angular_devkit/build_angular/src/extract-i18n/ivy-extract-loader.ts
@@ -51,7 +51,7 @@ export default function localizeExtractLoader(
51
}
52
53
// Setup a virtual file system instance for the extractor
54
- // * MessageExtractor itself uses readFile and resolve
+ // * MessageExtractor itself uses readFile, relative and resolve
55
// * Internal SourceFileLoader (sourcemap support) uses dirname, exists, readFile, and resolve
56
const filesystem = {
57
readFile(path: string): string {
@@ -63,6 +63,9 @@ export default function localizeExtractLoader(
63
throw new Error('Unknown file requested: ' + path);
64
65
},
66
+ relative(from: string, to: string): string {
67
+ return nodePath.relative(from, to);
68
+ },
69
resolve(...paths: string[]): string {
70
return nodePath.resolve(...paths);
71
0 commit comments