1.2.0 • Published 1 year ago

babel-plugin-transform-lhs-constants v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

babel-plugin-transform-lhs-constants

CI

The Babel plugin to move constant values to the left-hand side of binary nodes.

Example

- typeof foo === "string"
+ "string" === typeof foo

Install

Using npm:

npm i -D babel-plugin-transform-lhs-constants

or using yarn:

yarn add babel-plugin-transform-lhs-constants -D

Usage

With a configuration file babel.config.json

{
  "plugins": ["babel-plugin-transform-lhs-constants"]
}

License

MIT

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago