aboutsummaryrefslogtreecommitdiff
path: root/test/compress/imports.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/imports.js')
-rw-r--r--test/compress/imports.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compress/imports.js b/test/compress/imports.js
index f8313b06..558dd6a8 100644
--- a/test/compress/imports.js
+++ b/test/compress/imports.js
@@ -144,3 +144,24 @@ keep_ref: {
foo();
}
}
+
+forbid_merge: {
+ options = {
+ merge_vars: true,
+ toplevel: true,
+ }
+ input: {
+ import A from "foo";
+ export default class extends A {}
+ var f = () => () => {};
+ f();
+ f();
+ }
+ expect: {
+ import A from "foo";
+ export default class extends A {}
+ var f = () => () => {};
+ f();
+ f();
+ }
+}