8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dca1e5 commit d788452Copy full SHA for d788452
webpack/localization-plugin/src/utilities/LocFileParser.ts
@@ -35,7 +35,10 @@ export class LocFileParser {
35
public static parseLocFileFromLoader(content: string, loaderContext: loader.LoaderContext): ILocalizationFile {
36
return LocFileParser.parseLocFile({
37
filePath: loaderContext.resourcePath,
38
- loggerOptions: { writeError: loaderContext.emitError, writeWarning: loaderContext.emitWarning },
+ loggerOptions: {
39
+ writeError: (errorMessage) => loaderContext.emitError(new Error(errorMessage)),
40
+ writeWarning: (warningMessage) => loaderContext.emitWarning(new Error(warningMessage))
41
+ },
42
content
43
});
44
}
0 commit comments