babel-plugin-minify-object-property

1.0.0 • Public • Published

babel-plugin-minify-object-property

Extract direct object property value

Example

in

if ({ isWeb: false, isWechat: !0 }.isWeb) {
  console.log(1);
}

out

if (false) {
  console.log(1);
}

Installation

npm install babel-plugin-minify-object-property --save-dev

Suggestion

Used with babel-plugin-minify-dead-code-elimination

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-minify-object-property

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.3 kB

Total Files

12

Last publish

Collaborators

  • noyobo