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