From d1fface103b90d2ef8d14d50b77cbfcf20b4bb71 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Tue, 5 Dec 2023 12:03:38 +0100 Subject: [PATCH] Refactor to handle uncaught webpack errors Closes GH-2398. Reviewed-by: Titus Wormer --- packages/loader/index.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/loader/index.cjs b/packages/loader/index.cjs index af2e7913a..eab55a2da 100644 --- a/packages/loader/index.cjs +++ b/packages/loader/index.cjs @@ -28,5 +28,5 @@ function loader(code) { // Note that `import()` caches, so this should be fast enough. import('./lib/index.js').then((module) => { return module.loader.call(this, code, callback) - }) + }, callback) }