浏览代码

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));
 	};
 }