From a09e7d8a9aa1b69d54dbf4d27ada6931c433bb2f Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Wed, 31 Jul 2024 22:37:49 +0100 Subject: [PATCH] fixup! implement route scoping solution avoid unnecessary spreading --- .../processVercelFunctions/dedupeEdgeFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts b/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts index a8ddb00f4..42c23dfe9 100644 --- a/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts +++ b/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts @@ -246,7 +246,7 @@ async function buildFunctionFile( ); const namedExportsId = `getNamedExports_${chunkMapIdx++}`; - chunksExportsMap.set(namedExportsId, new Set([...keys.split(',')])); + chunksExportsMap.set(namedExportsId, new Set(keys.split(','))); functionImports += `import { getNamedExports as ${namedExportsId} } from '${importPath}';\n`; });