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:
Fix rollup 2 compatibility
RenderedChunk['moduleIds'] is introduced in rollup 3
rollup-plugin-swc3 supports both rollup 2 and rollup 3, and I want to re-export
rollup-plugin-swc-preserve-directives
fromrollup-plugin-swc3
without introducing a breaking change.The PR does 3 things:
RenderedChunk['moduleIds']
is introduced in rollup 3peerDependencies
field.