aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-02-20 22:54:15 +0000
committerGitHub <noreply@github.com>2021-02-21 06:54:15 +0800
commitae09773ba017ce65b261d15ed3098ae40c3b2a1b (patch)
tree1ef30faf5da458e22e333524ea0147f694e04bc3 /test
parent8d668c2963c4322fea47009b057791c1a7caa612 (diff)
downloadtracifyjs-ae09773ba017ce65b261d15ed3098ae40c3b2a1b.tar.gz
tracifyjs-ae09773ba017ce65b261d15ed3098ae40c3b2a1b.zip
parse dynamic `import` correctly (#4671)
Diffstat (limited to 'test')
-rw-r--r--test/compress/imports.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/compress/imports.js b/test/compress/imports.js
index cdc239cd..03ebf997 100644
--- a/test/compress/imports.js
+++ b/test/compress/imports.js
@@ -47,6 +47,13 @@ dynamic: {
expect_exact: '(async a=>await import(a))("foo").then(bar);'
}
+dynamic_nought: {
+ input: {
+ import(foo);
+ }
+ expect_exact: "import(foo);"
+}
+
import_meta: {
input: {
console.log(import.meta, import.meta.url);