File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default function localizeExtractLoader(
51
51
}
52
52
53
53
// Setup a virtual file system instance for the extractor
54
- // * MessageExtractor itself uses readFile and resolve
54
+ // * MessageExtractor itself uses readFile, relative and resolve
55
55
// * Internal SourceFileLoader (sourcemap support) uses dirname, exists, readFile, and resolve
56
56
const filesystem = {
57
57
readFile ( path : string ) : string {
@@ -63,6 +63,9 @@ export default function localizeExtractLoader(
63
63
throw new Error ( 'Unknown file requested: ' + path ) ;
64
64
}
65
65
} ,
66
+ relative ( from : string , to : string ) : string {
67
+ return nodePath . relative ( from , to ) ;
68
+ } ,
66
69
resolve ( ...paths : string [ ] ) : string {
67
70
return nodePath . resolve ( ...paths ) ;
68
71
} ,
You can’t perform that action at this time.
0 commit comments