Merge pull request #2754 from hzoo/fix-simp-comp-op
WIP: Fix transform-simplify-comparison-operators plugin
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
typeof 1 === "number";
|
||||
typeof 1 !== "string";
|
||||
|
||||
typeof 1 == "number";
|
||||
typeof 1 != "string";
|
||||
|
||||
a > b;
|
||||
@@ -0,0 +1,7 @@
|
||||
typeof 1 == "number";
|
||||
typeof 1 != "string";
|
||||
|
||||
typeof 1 == "number";
|
||||
typeof 1 != "string";
|
||||
|
||||
a > b;
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-simplify-comparison-operators"]
|
||||
}
|
||||
Reference in New Issue
Block a user