The simplest and fastest way to bundle your TypeScript libraries.
8.48k
stars
209
forks
source link
Multiple empty lines in generated CJS file before the export statement, while exports are collapsed to one line #1068
Open
OzelotVanilla opened 6 months ago
I discovered there is empty lines before the exports statements in the generated CJS file. All the exports statement will be placed in one line.
Here are some examples:
2 exports, 3 empty line after previous non-empty.![image](https://github.com/egoist/tsup/assets/59910575/181088bb-3701-4ed7-bfd8-ec01a05d0429)
3 exports, 4 empty line after previous non-empty.![image](https://github.com/egoist/tsup/assets/59910575/012959fe-b346-4e8e-a1cf-d77fe2af450d)
7 exports, 8 empty line after previous non-empty.![image](https://github.com/egoist/tsup/assets/59910575/520d9f17-1c05-4e98-acc0-0a639d82d9d0)
I am using the config like this:
Can I ask is this behaviour a bug, or designed to be like this, or if there is a failure in my configuration ?
Upvote & Fund