Skip to content

Commit

Permalink
traverse exported code while hoisting object properties. Closes #1307
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosantoscode committed Dec 1, 2022
1 parent 1e99e5d commit 4d37f39
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/compress/index.js
Expand Up @@ -1176,8 +1176,6 @@ AST_Scope.DEFMETHOD("hoist_properties", function(compressor) {
var top_retain = self instanceof AST_Toplevel && compressor.top_retain || return_false;
var defs_by_id = new Map();
var hoister = new TreeTransformer(function(node, descend) {
if (node instanceof AST_Definitions
&& hoister.parent() instanceof AST_Export) return node;
if (node instanceof AST_VarDef) {
const sym = node.name;
let def;
Expand Down

0 comments on commit 4d37f39

Please sign in to comment.