You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmp/compiler/src/plugin/next-compiler-loader.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,9 @@ export default async function nextCompilerLoader(
15
15
this: any,
16
16
source: string,
17
17
): Promise<void>{
18
-
// TODO (AleksandrSl 14/12/2025): Webpack doesn't like callback usage in async function. But asycn function can return only code, so we have to use promises which is sad.
18
+
// TODO (AleksandrSl 14/12/2025): Webpack doesn't like callback usage in async function.
19
+
// But async function can return only code, so we have to use promises which is sad. It actually errors only when we catch an error, so it's not an urgent problem
20
+
19
21
// Ensure we're running in loader context
20
22
if(typeofthis.async!=="function"){
21
23
thrownewError("This module must be run as a loader");
// TODO (AleksandrSl 02/12/2025): Sanity check. We need to try loading the most up to date translations first. Fo the dev mode they are in lingo. Gor build they are in next.
@@ -101,7 +102,7 @@ async function readFromFilesystem(
0 commit comments