Skip to content

Commit

Permalink
fixup! implement route scoping solution
Browse files Browse the repository at this point in the history
format code
  • Loading branch information
dario-piotrowicz committed Jul 31, 2024
1 parent a09e7d8 commit c1f5650
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
`;
Expand Down

0 comments on commit c1f5650

Please sign in to comment.