The whitespace removal plugin for rollup removes conditional logic and replaces with the post operator value.
function proof(someValue?: string) {
return `Some text ${ someValue || '' }`
}
post build becomes
function proof(someValue?: string) {
return `Some text `
}
The whitespace removal plugin for rollup removes conditional logic and replaces with the post operator value.
post build becomes