Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove helper, use the built-in t.isNodesEquivalent #276

Merged
merged 1 commit into from
Nov 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/babel-helper-is-nodes-equiv/.npmignore

This file was deleted.

7 changes: 0 additions & 7 deletions packages/babel-helper-is-nodes-equiv/README.md

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions packages/babel-helper-is-nodes-equiv/package.json

This file was deleted.

45 changes: 0 additions & 45 deletions packages/babel-helper-is-nodes-equiv/src/index.js

This file was deleted.

3 changes: 1 addition & 2 deletions packages/babel-plugin-minify-simplify/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const PatternMatch = require("./pattern-match");

module.exports = ({ types: t }) => {
const isNodesEquiv = require("babel-helper-is-nodes-equiv")(t);
const flipExpressions = require("babel-helper-flip-expressions")(t);
const toMultipleSequenceExpressions = require("babel-helper-to-multiple-sequence-expressions")(t);

Expand Down Expand Up @@ -397,7 +396,7 @@ module.exports = ({ types: t }) => {
const left = path.get("left").node;
if (firstLeft == null) {
firstLeft = left;
} else if (!isNodesEquiv(left, firstLeft)) {
} else if (!t.isNodesEquivalent(left, firstLeft)) {
return true;
}

Expand Down