
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
@babel/plugin-bugfix-safari-class-field-initializer-scope
Advanced tools
Wrap class field initializers with IIFE to workaround https://webkit.org/b/236843
@babel/plugin-bugfix-safari-class-field-initializer-scope is a Babel plugin designed to address a specific bug in Safari's handling of class field initializers. This plugin ensures that class field initializers are correctly scoped, preventing potential issues in Safari's JavaScript engine.
Fixes class field initializer scope in Safari
This feature ensures that class field initializers are correctly scoped in Safari, preventing issues where the initializer might not be properly assigned to the instance.
class MyClass {
myField = 'value';
constructor() {
console.log(this.myField);
}
}
const instance = new MyClass();
@babel/plugin-proposal-class-properties allows you to use class properties in your JavaScript code. While it doesn't specifically address the Safari bug, it provides the foundational support for class properties, which is a broader feature set compared to the bugfix plugin.
@babel/plugin-transform-classes transforms ES6 class syntax to ES5, ensuring compatibility across older browsers. It doesn't specifically fix the Safari class field initializer scope issue but provides a more general transformation for class syntax.
Wrap class field initializers with IIFE to workaround https://webkit.org/b/236843
See our website @babel/plugin-bugfix-safari-class-field-initializer-scope for more information.
Using npm:
npm install --save-dev @babel/plugin-bugfix-safari-class-field-initializer-scope
or using yarn:
yarn add @babel/plugin-bugfix-safari-class-field-initializer-scope --dev
v7.27.1 (2025-04-30)
babel-parser
babel-parser
, babel-types
babel-plugin-proposal-destructuring-private
, babel-plugin-proposal-do-expressions
, babel-traverse
babel-helper-wrap-function
, babel-plugin-transform-async-to-generator
babel-helper-remap-async-to-generator
, babel-plugin-transform-async-to-generator
babel-helper-fixtures
, babel-parser
babel-generator
, babel-parser
babel-parser
babel-compat-data
, babel-preset-env
babel-traverse
babel-generator
babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
, babel-plugin-proposal-decorators
, babel-plugin-transform-arrow-functions
, babel-plugin-transform-class-properties
, babel-plugin-transform-destructuring
, babel-plugin-transform-object-rest-spread
, babel-plugin-transform-optional-chaining
, babel-plugin-transform-parameters
, babel-traverse
babel-runtime-corejs2
, babel-runtime-corejs3
, babel-runtime
regenerator-runtime
dep in @babel/runtime
(@nicolo-ribaudo)babel-compat-data
, babel-preset-env
babel-compat-data
, babel-standalone
babel-register
@babel/register
to cts (@liuxingbaoyu)babel-cli
, babel-compat-data
, babel-core
, babel-generator
, babel-helper-compilation-targets
, babel-helper-fixtures
, babel-helper-module-imports
, babel-helper-module-transforms
, babel-helper-plugin-test-runner
, babel-helper-transform-fixture-test-runner
, babel-helpers
, babel-node
, babel-parser
, babel-plugin-transform-modules-amd
, babel-plugin-transform-modules-commonjs
, babel-plugin-transform-modules-systemjs
, babel-plugin-transform-modules-umd
, babel-plugin-transform-react-display-name
, babel-plugin-transform-regenerator
, babel-plugin-transform-runtime
, babel-plugin-transform-typeof-symbol
, babel-plugin-transform-typescript
, babel-preset-env
, babel-register
, babel-standalone
, babel-types
babel-plugin-transform-regenerator
babel-helpers
, babel-plugin-transform-async-generator-functions
, babel-plugin-transform-regenerator
, babel-preset-env
, babel-runtime-corejs3
babel-helpers
, babel-plugin-transform-regenerator
babel-helpers
babel-helpers
, babel-plugin-transform-modules-commonjs
, babel-runtime-corejs3
interopRequireWildcard
size (@liuxingbaoyu)babel-helpers
, babel-plugin-transform-async-generator-functions
, babel-plugin-transform-regenerator
, babel-preset-env
, babel-runtime-corejs3
regeneratorRuntime
size (@liuxingbaoyu)FAQs
Wrap class field initializers with IIFE to workaround https://webkit.org/b/236843
The npm package @babel/plugin-bugfix-safari-class-field-initializer-scope receives a total of 11,355,622 weekly downloads. As such, @babel/plugin-bugfix-safari-class-field-initializer-scope popularity was classified as popular.
We found that @babel/plugin-bugfix-safari-class-field-initializer-scope demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.