diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-06-12 17:10:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-13 00:10:01 +0800 |
commit | f8b2215145819ed104ba0be0fd5a6f951c91ef8a (patch) | |
tree | bf7b6ae38fbce7c0dc0eb569d001fd3b9e23b45d /test/compress/imports.js | |
parent | 70ceda5398535c7028682e05cc8b82009953e54d (diff) | |
download | tracifyjs-f8b2215145819ed104ba0be0fd5a6f951c91ef8a.tar.gz tracifyjs-f8b2215145819ed104ba0be0fd5a6f951c91ef8a.zip |
fix corner cases in `parse` & `unused` (#5000)
Diffstat (limited to 'test/compress/imports.js')
-rw-r--r-- | test/compress/imports.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/compress/imports.js b/test/compress/imports.js index d0e6af56..0accb3ec 100644 --- a/test/compress/imports.js +++ b/test/compress/imports.js @@ -94,13 +94,15 @@ drop_unused: { } input: { import a, * as b from "foo"; - import { c, bar as d } from "baz"; - console.log(c); + import { c } from "bar"; + import { d, _ as e } from "baz"; + console.log(d); } expect: { import "foo"; - import { c as c } from "baz"; - console.log(c); + import "bar"; + import { d as d } from "baz"; + console.log(d); } } |