Skip to content

Commit fe04733

Browse files
committed
feature: @putout/plugin-remove-empty: drop support of recast
1 parent 005b1d7 commit fe04733

File tree

4 files changed

+0
-34
lines changed

4 files changed

+0
-34
lines changed

packages/plugin-remove-empty/lib/block/fixture/recast-block-fn-fix.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/plugin-remove-empty/lib/block/fixture/recast-block-fn.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/plugin-remove-empty/lib/block/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ module.exports.traverse = ({push}) => ({
8686
if (blockIsAlternate(node, parentNode))
8787
return push(parentPath);
8888

89-
if (parentPath.isProgram())
90-
return push(path);
91-
9289
push(parentPath);
9390
},
9491
});

packages/plugin-remove-empty/lib/block/recast.spec.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)