@babel/preset-typescript simplifies integrating TypeScript code into Babel's JavaScript compilation pipeline. Comparing versions 7.1.0 and 7.3.3 reveals subtle but important updates for developers. Both versions share a similar structure, providing a pre-configured set of plugins for TypeScript compilation within a Babel environment. They both depend on @babel/helper-plugin-utils and @babel/plugin-transform-typescript, which handle core plugin utilities and the actual TypeScript transformation process. Development dependencies like @babel/core and @babel/helper-plugin-test-runner ensure the preset can be tested and integrated with Babel's core functionality.
The key difference lies in the updated version of @babel/plugin-transform-typescript. Version 7.1.0 relies directly on @babel/plugin-transform-typescript@7.1.0, while 7.3.3 updates this dependency to @babel/plugin-transform-typescript@7.3.2. This upgrade likely addresses bug fixes, performance improvements, and potentially incorporates new or enhanced TypeScript syntax support. The fileCount & unpackedSize is also different between the 2 versions. The package 7.3.3 is more recent, with a release date in February 2019, while 7.1.0 was released in September 2018. Users should upgrade to version 7.3.3 to leverage the latest fixes and enhancements to the core TypeScript transformation process if they require the features introduced in @babel/plugin-transform-typescript@7.3.2. For most developers, compatibility with the newest TypeScript features and improved performance often outweigh the risks of upgrading a minor version. The library is licensed under the MIT license.
The are not vulnerabilities for the version 7.3.3 of the package @babel/preset-typescript