ignore parameter bindings in minification.deadCodeElimination transformer - fixes #1464
This commit is contained in:
parent
0bb311f8ce
commit
8ed90d3af2
@ -26,6 +26,7 @@ export function Identifier(node, parent, scope) {
|
||||
|
||||
var binding = scope.getBinding(node.name);
|
||||
if (!binding || binding.references > 1 || !binding.constant) return;
|
||||
if (binding.kind === "param") return;
|
||||
|
||||
var replacement = binding.path.node;
|
||||
if (t.isVariableDeclarator(replacement)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user