From ae09773ba017ce65b261d15ed3098ae40c3b2a1b Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 20 Feb 2021 22:54:15 +0000 Subject: parse dynamic `import` correctly (#4671) --- test/compress/imports.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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); -- cgit v1.2.3