From 56ad1c7f44ce3387e751507383b164bcd5fe6b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Iv=C3=A1n=20Vieitez=20Parra?= <3857362+corrideat@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:57:16 +0100 Subject: [PATCH] Linting --- src/esmExports.ts | 2 +- src/esmImports.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/esmExports.ts b/src/esmExports.ts index 8c7adfb..127bd4e 100644 --- a/src/esmExports.ts +++ b/src/esmExports.ts @@ -30,7 +30,7 @@ const preprocess = (text: string): string => return `[${JSON.stringify( p2.trim(), )}]=${p1}`; - }) + }) : `[${JSON.stringify(e.trim())}]=${e}`), ) .join(';'); diff --git a/src/esmImports.ts b/src/esmImports.ts index 142e24a..9b32ad8 100644 --- a/src/esmImports.ts +++ b/src/esmImports.ts @@ -31,7 +31,7 @@ const preprocess = (text: string): string => : '', namedImports?.replace(/as\s/g, ':'), starName ? `...${starName}` : '', - ] + ] .filter(Boolean) .join(',')}}=` : '' @@ -51,7 +51,7 @@ const preprocess = (text: string): string => return `[${JSON.stringify( p2.trim(), )}]=${p1}`; - }) + }) : `[${JSON.stringify(e.trim())}]=${e}`), ) .join(';');