diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-03-13 07:09:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-13 15:09:07 +0800 |
commit | 6f3ab09319ec1aa4a8e489f83f6724add46bc19c (patch) | |
tree | e91c01e3cf9698b8121c82bae2786089f344f98c /test | |
parent | 3b5d5014e09f0158a46e1729f36b5cdf7e7fd0ee (diff) | |
download | tracifyjs-6f3ab09319ec1aa4a8e489f83f6724add46bc19c.tar.gz tracifyjs-6f3ab09319ec1aa4a8e489f83f6724add46bc19c.zip |
fix corner case in `unused` (#4767)
fixes #4766
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/exports.js | 14 |
1 files changed, 14 insertions, 0 deletions
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"; + } +} |