huozhi / rollup-preserve-directives

This is a rollup plugin that helps preserve shebang and string directives.
https://npmjs.com/package/rollup-preserve-directives
34 stars 4 forks source link

feat: add rollup 2 compatibility #3

Closed SukkaW closed 1 year ago

SukkaW commented 1 year ago

rollup-plugin-swc3 supports both rollup 2 and rollup 3, and I want to re-export rollup-plugin-swc-preserve-directives from rollup-plugin-swc3 without introducing a breaking change.

The PR does 3 things: