From 6f3ab09319ec1aa4a8e489f83f6724add46bc19c Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 13 Mar 2021 07:09:07 +0000 Subject: fix corner case in `unused` (#4767) fixes #4766 --- test/compress/exports.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') diff --git a/test/compress/exports.js b/test/compress/exports.js index 33059bca..0fdf6412 100644 --- a/test/compress/exports.js +++ b/test/compress/exports.js @@ -464,3 +464,17 @@ issue_4761: { } expect_exact: 'export default"function"==42;' } + +issue_4766: { + options = { + unused: true, + } + input: { + var a = "foo"; + export var a = "bar"; + } + expect: { + var a = "foo"; + export var a = "bar"; + } +} -- cgit v1.2.3