diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-03-07 04:44:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-07 12:44:34 +0800 |
commit | 31e7d25cad45bc4eda220cc0de594bf084bb28d8 (patch) | |
tree | 8c8f4f4ddc8ec41dce8469e285232d8fa42a31d2 /test | |
parent | 12babdfe20eae91de1b60a5a3cfb7db0a5a04cb0 (diff) | |
download | tracifyjs-31e7d25cad45bc4eda220cc0de594bf084bb28d8.tar.gz tracifyjs-31e7d25cad45bc4eda220cc0de594bf084bb28d8.zip |
fix issues uncovered by lgtm (#4749)
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/exports.js | 18 |
1 files changed, 17 insertions, 1 deletions
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, |