Babel-plugin-transform-property-literals is a Babel plugin designed to optimize JavaScript code by transforming valid property key literals into plain identifiers. This transformation can lead to smaller file sizes and potentially improved performance, especially in minified code.
Version 6.8.4, released on June 13, 2017, introduces a significant dependency: esutils version ^2.0.2. This dependency likely provides utilities for ECMAScript syntax analysis, which may be related to improved accuracy or handling of edge cases in the property literal transformation. Developers upgrading to version 6.8.4 should be aware of this new dependency and ensure it's properly installed in their project. While the core functionality remains the same – converting property literals to identifiers – the addition of esutils suggests improvements in the plugin's underlying parsing and transformation logic.
In contrast, the previous stable version, 6.8.3, released on May 22, 2017, had no dependencies and no devDependencies. This simpler dependency structure might be preferable for projects aiming to minimize their dependency footprint. The update to 6.8.4 suggests a focus on robustness and correctness over absolute minimal dependencies, which is a tradeoff developers should consider depending on their project's specific needs. Both versions are licensed under MIT and maintained within the Babili project.
The are not vulnerabilities for the version 6.8.4 of the package babel-plugin-transform-property-literals