From efe3f307415ddfddd058829f0e2a83dbcd86aa8d Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 12 Feb 2015 07:46:34 +1100 Subject: [PATCH] make minification.renameLocalVariables work --- .../minification/rename-local-variables.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/6to5/transformation/transformers/minification/rename-local-variables.js b/lib/6to5/transformation/transformers/minification/rename-local-variables.js index 946de0c386..68f8c781ae 100644 --- a/lib/6to5/transformation/transformers/minification/rename-local-variables.js +++ b/lib/6to5/transformation/transformers/minification/rename-local-variables.js @@ -2,10 +2,8 @@ exports.optional = true; -exports.Scope = function () { - // todo: get all binding identifiers, generate compact names - // that wont collide and then call the remap identifier helper - - // this transformer **has** to be ran last as it will absolutley - // destroy the scope tree +exports.Scopable = function (node, parent, scope) { + //for (var name in scope.bindings) { + // scope.rename(name, scope.generateUidIdentifier("a").name); + //} };