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); }