Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-es2015-classes

Package Overview
Dependencies
Maintainers
6
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-classes

Compile ES2015 classes to ES5

  • 6.6.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created

What is babel-plugin-transform-es2015-classes?

The babel-plugin-transform-es2015-classes package is a Babel plugin that transforms ES2015 (ES6) class syntax into a form that can be understood by older JavaScript environments that do not support ES2015 classes. This allows developers to write modern JavaScript code while maintaining compatibility with older environments.

What are babel-plugin-transform-es2015-classes's main functionalities?

Class Declaration Transformation

Transforms ES2015 class declarations into a form that can be understood by older JavaScript environments.

class Example { constructor() { this.value = 42; } getValue() { return this.value; } }

Inheritance Transformation

Transforms ES2015 class inheritance syntax into a form that can be understood by older JavaScript environments.

class Parent { constructor() { this.parentValue = 'parent'; } } class Child extends Parent { constructor() { super(); this.childValue = 'child'; } }

Static Methods Transformation

Transforms ES2015 static methods into a form that can be understood by older JavaScript environments.

class Example { static staticMethod() { return 'static method'; } }

Other packages similar to babel-plugin-transform-es2015-classes

Keywords

FAQs

Package last updated on 02 Mar 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc