From 468c4753591f231510b076976269dcae3d6bf13c Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 17 Sep 2021 15:15:43 -0700 Subject: Add test for tsx/ts fallback imports --- integration/snippets/ts-fallback-rewrite-works.ts | 5 +++++ integration/snippets/tsx-fallback-rewrite-works.tsx | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 integration/snippets/ts-fallback-rewrite-works.ts create mode 100644 integration/snippets/tsx-fallback-rewrite-works.tsx (limited to 'integration/snippets') diff --git a/integration/snippets/ts-fallback-rewrite-works.ts b/integration/snippets/ts-fallback-rewrite-works.ts new file mode 100644 index 000000000..8e6dabcdb --- /dev/null +++ b/integration/snippets/ts-fallback-rewrite-works.ts @@ -0,0 +1,5 @@ +// This looks like it does nothing +// But if you import /ts-fallback-rewrite-works.js, it should resolve the import to /ts-fallback-rewrite-works.ts +export function test() { + return testDone(import.meta.url); +} diff --git a/integration/snippets/tsx-fallback-rewrite-works.tsx b/integration/snippets/tsx-fallback-rewrite-works.tsx new file mode 100644 index 000000000..b18619914 --- /dev/null +++ b/integration/snippets/tsx-fallback-rewrite-works.tsx @@ -0,0 +1,5 @@ +// This looks like it does nothing +// But if you import /tsx-fallback-rewrite-works.js, it should resolve the import to /tsx-fallback-rewrite-works.tsx +export function test() { + return testDone(import.meta.url); +} -- cgit v1.2.3