diff --git a/src/index.ts b/src/index.ts index 285fa1d..f682667 100644 --- a/src/index.ts +++ b/src/index.ts @@ -208,9 +208,9 @@ function removeMap(obj: _.Dictionary, keys: (string | undefined)[]) { } export default class I18nextPlugin { - protected compilation: wp.Compilation; + protected compilation!: wp.Compilation; protected option: InternalOption; - protected context: string; + protected context!: string; protected missingKeys: CollectedKeys = {}; protected startTime = Date.now(); protected prevTimestamps: {[file: string]: number} = {}; @@ -531,4 +531,4 @@ export default class I18nextPlugin { this.compilation.warnings.push(msg); } } -} \ No newline at end of file +}