Skip to content

Commit bcc6eff

Browse files
committed
Don't remove, replace with undefined
1 parent 07c9600 commit bcc6eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const argumentsInliningVisitor = {
77
if(this.args[i]) {
88
path.replaceWith(this.args[i]);
99
} else {
10-
path.remove();
10+
path.replaceWithSourceString('undefined');
1111
}
1212
}
1313
};

0 commit comments

Comments
 (0)