rollup-plugin-cleanup
rollup-plugin-cleanup copied to clipboard
Using hooks as filters
For example:
jsCleanup(code, null, {
comments: [
(commentContent) => {
return commentContent.includes("preserve");
}
]
})
This allows more granular control over which comments to keep and which ones to discard.
I think I might be able to do a PR if you like.