minification.memberExpressionLiterals

How to use the minification.memberExpressionLiterals transformer.

Turn member expression valid identifier literal properties into identifiers.

Usage

require("babel").transform("code", { optional: ["minification.memberExpressionLiterals"] });
$ babel --optional minification.memberExpressionLiterals script.js

Example

In

foo["bar"];

Out

foo.bar;