From 31e7d25cad45bc4eda220cc0de594bf084bb28d8 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 7 Mar 2021 04:44:34 +0000 Subject: fix issues uncovered by lgtm (#4749) --- test/compress/exports.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/compress/exports.js b/test/compress/exports.js index a7239148..3aaae4ae 100644 --- a/test/compress/exports.js +++ b/test/compress/exports.js @@ -203,7 +203,23 @@ mangle_rename: { } } -hoist_exports: { +hoist_exports_1: { + options = { + hoist_exports: true, + } + input: { + export { a }; + export var b; + export function f() {} + } + expect: { + var b; + function f() {} + export { a, b, f }; + } +} + +hoist_exports_2: { options = { evaluate: true, hoist_exports: true, -- cgit v1.2.3