aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-03-07 04:44:34 +0000
committerGitHub <noreply@github.com>2021-03-07 12:44:34 +0800
commit31e7d25cad45bc4eda220cc0de594bf084bb28d8 (patch)
tree8c8f4f4ddc8ec41dce8469e285232d8fa42a31d2 /test
parent12babdfe20eae91de1b60a5a3cfb7db0a5a04cb0 (diff)
downloadtracifyjs-31e7d25cad45bc4eda220cc0de594bf084bb28d8.tar.gz
tracifyjs-31e7d25cad45bc4eda220cc0de594bf084bb28d8.zip
fix issues uncovered by lgtm (#4749)
Diffstat (limited to 'test')
-rw-r--r--test/compress/exports.js18
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,