فهرست منبع

Fix compilation problem

Alex Dima 3 سال پیش
والد
کامیت
0bc9ebb914
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      webpack-plugin/src/plugins/AddWorkerEntryPointPlugin.ts

+ 1 - 1
webpack-plugin/src/plugins/AddWorkerEntryPointPlugin.ts

@@ -33,7 +33,7 @@ function getCompilerHook(
 		new SingleEntryPlugin(compiler.context, entry, 'main').apply(childCompiler);
 		plugins.forEach((plugin) => plugin.apply(childCompiler));
 
-		childCompiler.runAsChild((err?: Error) => callback(err));
+		childCompiler.runAsChild((err?: Error | null) => callback(err));
 	};
 }