How to use the minification.memberExpressionLiterals transformer.
Turn member expression valid identifier literal properties into identifiers.
require("babel").transform("code", { optional: ["minification.memberExpressionLiterals"] });
$ babel --optional minification.memberExpressionLiterals script.js
In
foo["bar"];
Out
foo.bar;