Browse Source

Fix compilation problem

Alex Dima 3 năm trước cách đây
mục cha
commit
0bc9ebb914
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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));
 	};
 }