+3
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.hooks = void 0;
|
||||
|
||||
var _ = require("..");
|
||||
|
||||
const hooks = [function (self, parent) {
|
||||
const removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement();
|
||||
|
||||
|
||||
+2
-2
@@ -164,8 +164,8 @@ const Generated = {
|
||||
};
|
||||
exports.Generated = Generated;
|
||||
const Pure = {
|
||||
checkPath(path, opts) {
|
||||
return path.scope.isPure(path.node, opts);
|
||||
checkPath(path, constantsOnly) {
|
||||
return path.scope.isPure(path.node, constantsOnly);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user