The @babel/plugin-bugfix-safari-class-field-initializer-scope Babel plugin addresses a specific Safari JavaScript engine bug. This bug incorrectly handles the scope of class field initializers, potentially leading to unexpected variable shadowing and runtime errors. This plugin transforms code to ensure that class field initializers have the correct scope in Safari, preventing these errors and guaranteeing consistent behavior across browsers. Consider using it if you target older Safari versions and utilize class fields.
The npm package @babel/plugin-bugfix-safari-class-field-initializer-scope has seen sporadic releases. It was released once in July 2024 (7.25.0), twice in October 2024 (7.25.7, 7.25.9), and once in April 2025 (7.27.1). There have been no releases in August and September 2024, November and December 2024 and January, February, March, May, June, July, August and September 2025.
@babel/plugin-bugfix-safari-class-field-initializer-scope downloads surged from July 2024, peaking around June-August 2025. Downloads have consistently increased month-over-month, showing strong adoption. September 2025 data is incomplete but suggests a potential decrease compared to the prior months.