Skip to content

Commit c410927

Browse files
committed
fix(index): move getCompilerHooks public static method
1 parent fb8078b commit c410927

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ class ForkTsCheckerWebpackPlugin {
6565
ForkTsCheckerWebpackPlugin.ALL_CPUS - 2
6666
);
6767

68+
public static getCompilerHooks(compiler: webpack.Compiler) {
69+
return getForkTsCheckerWebpackPluginHooks(compiler);
70+
}
71+
6872
public readonly options: Partial<Options>;
6973
private tsconfig: string;
7074
private compilerOptions: object;
@@ -171,10 +175,6 @@ class ForkTsCheckerWebpackPlugin {
171175
this.vue = options.vue === true; // default false
172176
}
173177

174-
private static getCompilerHooks(compiler: webpack.Compiler) {
175-
return getForkTsCheckerWebpackPluginHooks(compiler);
176-
}
177-
178178
private static createFormatter(type: 'default' | 'codeframe', options: any) {
179179
switch (type) {
180180
case 'default':

0 commit comments

Comments
 (0)