Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly
Advanced tools
Transform static class fields assignments that are affected by https://crbug.com/v8/12421
@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly is a Babel plugin designed to address a specific bug in V8 (the JavaScript engine used in Chrome and Node.js) related to static class fields. This plugin ensures that static class fields are correctly redefined as readonly, preventing unexpected behavior in JavaScript code.
Fix V8 static class fields bug
This feature ensures that static class fields in JavaScript are correctly treated as readonly, preventing them from being reassigned. The plugin modifies the behavior of static class fields to align with the expected behavior in V8.
class MyClass {
static myField = 42;
}
MyClass.myField = 100; // This will not change the value of myField due to the plugin
This Babel plugin allows you to use class properties in your JavaScript code. While it does not specifically address the V8 bug related to static class fields, it provides a broader set of features for working with class properties, both static and instance.
This plugin transforms ES6 classes to ES5, ensuring compatibility with older JavaScript environments. It does not specifically address the V8 static class fields bug but provides a comprehensive solution for transforming modern class syntax.
Transform static class fields assignments that are affected by https://crbug.com/v8/12421
See our website @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly for more information.
Using npm:
npm install --save-dev @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly
or using yarn:
yarn add @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly --dev
v7.24.6 (2024-05-24)
babel-helper-create-class-features-plugin
, babel-plugin-transform-class-properties
babel-core
, babel-generator
, babel-plugin-transform-modules-commonjs
babel-helper-create-class-features-plugin
, babel-plugin-proposal-decorators
babel-helpers
, babel-plugin-proposal-decorators
, babel-runtime-corejs3
babel-parser
, babel-plugin-transform-typescript
cls.fn<C> = x
(@liuxingbaoyu)babel-core
, babel-helpers
, babel-plugin-transform-runtime
, babel-preset-env
, babel-runtime-corejs2
, babel-runtime-corejs3
, babel-runtime
babel-helpers
tsconfig.json
for @babel/helpers/src/helpers
(@nicolo-ribaudo)babel-cli
, babel-helpers
, babel-plugin-external-helpers
, babel-plugin-proposal-decorators
, babel-plugin-transform-class-properties
, babel-plugin-transform-modules-commonjs
, babel-plugin-transform-modules-systemjs
, babel-plugin-transform-runtime
, babel-preset-env
, babel-runtime-corejs2
, babel-runtime-corejs3
, babel-runtime
babel-parser
, babel-traverse
FAQs
Transform static class fields assignments that are affected by https://crbug.com/v8/12421
The npm package @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly receives a total of 11,739,426 weekly downloads. As such, @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly popularity was classified as popular.
We found that @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.