The @babel/plugin-transform-property-literals Babel plugin transforms dot notation property access to bracket notation when the property is a reserved word or contains special characters. This optimization ensures compatibility with older JavaScript engines that might not correctly parse such dot notation. For example, foo.default becomes foo['default']. The plugin enhances code robustness across various JavaScript environments, especially when dealing with code that targets older or less standard-compliant interpreters.
The npm package @babel/plugin-transform-property-literals saw sporadic releases between August 2018 and July 2025. Releases were most frequent in 2020 and 2021. There were periods of several months with no releases. The most recent release was version 7.27.1 in April 2025.
Downloads of @babel/plugin-transform-property-literals surged from February 2024 to July 2025, peaking at over 135 million in June 2025. While remaining high, downloads have decreased to around 52 million in August 2025, but are likely to increase as August progresses.