babel-plugin-minify-flip-comparisons
Advanced tools
Comparing version 0.3.0-alpha.6ae655c0 to 0.3.0-alpha.6ceffb8d
"use strict"; | ||
module.exports = function ({ types: t }) { | ||
const isVoid0 = require("babel-helper-is-void-0")(t); | ||
module.exports = function (_ref) { | ||
var t = _ref.types; | ||
var isVoid0 = require("babel-helper-is-void-0")(t); | ||
return { | ||
@@ -14,5 +16,5 @@ name: "minify-flip-comparisons", | ||
BinaryExpression(path) { | ||
const node = path.node; | ||
const right = node.right, | ||
left = node.left; | ||
var node = path.node; | ||
var right = node.right, | ||
left = node.left; | ||
@@ -35,3 +37,3 @@ // Make sure we have a constant on the right. | ||
node.right = left; | ||
let operator; | ||
var operator = void 0; | ||
switch (node.operator) { | ||
@@ -38,0 +40,0 @@ case ">": |
{ | ||
"name": "babel-plugin-minify-flip-comparisons", | ||
"version": "0.3.0-alpha.6ae655c0", | ||
"version": "0.3.0-alpha.6ceffb8d", | ||
"description": "", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"babel-helper-is-void-0": "^0.3.0-alpha.6ae655c0" | ||
"babel-helper-is-void-0": "^0.3.0-alpha.6ceffb8d" | ||
} | ||
} |
2932
49