From c1f56502fb518143aa468453f1efd8a2bcc1dc1a Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Wed, 31 Jul 2024 22:40:09 +0100 Subject: [PATCH] fixup! implement route scoping solution format code --- .../processVercelFunctions/dedupeEdgeFunctions.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts b/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts index 42c23dfe9..8ea6f67ff 100644 --- a/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts +++ b/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts @@ -191,12 +191,10 @@ async function functionifyFileContent(path: string) { return ` const namedExports = {}; export const getNamedExports = ((self, globalThis, global) => { - ${ - originalFileContents.replace( - /export\s+const\s+(\S+)\s*=/g, - 'namedExports["$1"] =', - ) - } + ${originalFileContents.replace( + /export\s+const\s+(\S+)\s*=/g, + 'namedExports["$1"] =', + )} return namedExports; }); `;