Rollup Plugin TS version 2.0.0 introduces several enhancements and new features compared to version 1.4.7, making it a more powerful and versatile tool for TypeScript Rollup projects. The primary update is the integration of SWC (Speedy Web Compiler) and Babel as optional transpilers, extending the plugin's capabilities beyond just TypeScript compilation. This allows developers to leverage the strengths of SWC for incredibly fast builds, or Babel for wider compatibility and custom transformations. The description field of the package highlights now integration with SWC.
Version 2.0.0 also sees changes in its peer dependencies, now including @swc/core, @babel/core, @swc/helpers, @babel/runtime, @babel/preset-env, and @babel/plugin-transform-runtime, reflecting the new transpilation options. These peer dependencies gives to the final user a set of tools and features more powerful and flexible.
Dependency updates are also noticeable. Several dev dependencies have been bumped to newer versions.
The file count remains consistent at 11, but the uncompressed size sees a significant increase, which could be related to the inclusion of SWC integration and other added features. This plugin continues to bundle declarations, respect Browserslists, and provide seamless integration with transpilers for optimized output. Overall, version 2.0.0 offers enhanced flexibility and performance and is a worthwhile upgrade for developers seeking advanced TypeScript bundling capabilities in Rollup.
The are not vulnerabilities for the version 2.0.0 of the package rollup-plugin-ts