From dadb85ae367b5ca3092b69da92eba8929193dd6d Mon Sep 17 00:00:00 2001 From: Thomas Allmer Date: Tue, 31 Mar 2020 19:42:10 +0200 Subject: [PATCH] chore: add a failing test for dynamic imports with "`" --- modules/plugins/__tests__/unpkgRewrite-test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/plugins/__tests__/unpkgRewrite-test.js b/modules/plugins/__tests__/unpkgRewrite-test.js index d827be0f..c3ff4407 100644 --- a/modules/plugins/__tests__/unpkgRewrite-test.js +++ b/modules/plugins/__tests__/unpkgRewrite-test.js @@ -60,6 +60,10 @@ const testCases = [ before: 'import("./something.js");', after: 'import("./something.js?module");' }, + { + before: 'import(`./something.js`);', + after: 'import(`./something.js?module`);' + }, { before: 'import("react");', after: 'import("https://unpkg.com/react@15.6.1?module");'