From fce5d3dfce4101ac6dd6f8aea0a23cf80656e2d6 Mon Sep 17 00:00:00 2001 From: geekact Date: Thu, 17 Oct 2024 15:26:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=9A=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E4=B8=8B=EF=BC=8Ccjs=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/rebuild-dist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/rebuild-dist.ts b/src/lib/rebuild-dist.ts index 2ecf53b..14d884b 100644 --- a/src/lib/rebuild-dist.ts +++ b/src/lib/rebuild-dist.ts @@ -23,7 +23,7 @@ export const rebuildDist = async ( ); backupCJS = backupCJS.replace( /(__export\(.+?_exports, {)/, - `$1\n${classNames.map((className) => `${className}: () => ${className},`)}`, + `$1\n${classNames.map((className) => `${className}: () => ${className},`).join('\n')}`, ); await writeFile(path.join(distDir, 'index.js'), backupCJS); }